PDF章节目录生成器
生成带目录与章节占位页的PDF文档
生成带目录与章节页的PDF。
**功能:**
- 解析章节与页数
- 目录引导符样式
- 章节页页码
- 字体与页边距可调
API 文档
请求端点
POST /zh/api/tools/pdf-section-toc-generator
请求参数
| 参数名 | 类型 | 必填 | 描述 |
|---|---|---|---|
| sections | textarea | 是 | - |
| tocTitle | text | 否 | - |
| startPageNumber | number | 否 | - |
| pageSize | select | 否 | - |
| orientation | select | 否 | - |
| marginTop | number | 否 | - |
| marginBottom | number | 否 | - |
| marginLeft | number | 否 | - |
| marginRight | number | 否 | - |
| tocTitleSize | number | 否 | - |
| tocEntrySize | number | 否 | - |
| sectionTitleSize | number | 否 | - |
| showLeaders | checkbox | 否 | - |
| leaderStyle | select | 否 | - |
| showPageNumbers | checkbox | 否 | - |
响应格式
{
"filePath": "/public/processing/randomid.ext",
"fileName": "output.ext",
"contentType": "application/octet-stream",
"size": 1024,
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}
文件:
文件
AI MCP 文档
将此工具添加到您的 MCP 服务器配置中:
{
"mcpServers": {
"elysiatools-pdf-section-toc-generator": {
"name": "pdf-section-toc-generator",
"description": "生成带目录与章节占位页的PDF文档",
"baseUrl": "https://elysiatools.com/mcp/sse?toolId=pdf-section-toc-generator",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}
你可以串联多个工具,比如:`https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`,最多20个。
如果遇见问题,请联系我们:[email protected]