PDF排版实验室
实验排版设置:行距、间距、对齐和缩进
此工具允许您实时实验各种排版设置并查看结果:
**字体控制:**
- 字体大小调节(8-72pt)
- 字体粗细(正常、粗体、细体)
- 字间距(字符间距)
- 词间距调节
**布局控制:**
- 行高(1.0-3.0)
- 段前段后间距
- 文本对齐(左对齐、右对齐、居中、两端对齐)
- 首行缩进
- 左右缩进
**视觉辅助:**
- 可选的基线辅助线
- 可选的网格覆盖
- 用于调试的页面边框
**输出:**
- 应用排版设置的高质量PDF
- 不同设置的预览
- 有助于学习排版原则
API 文档
请求端点
POST /zh/api/tools/pdf-typography-playground
请求参数
| 参数名 | 类型 | 必填 | 描述 |
|---|---|---|---|
| content | textarea | 是 | - |
| fontSize | number | 否 | - |
| fontWeight | select | 否 | - |
| lineHeight | number | 否 | - |
| paragraphSpacingBefore | number | 否 | - |
| paragraphSpacingAfter | number | 否 | - |
| textAlign | select | 否 | - |
| firstLineIndent | number | 否 | - |
| leftIndent | number | 否 | - |
| rightIndent | number | 否 | - |
| letterSpacing | number | 否 | - |
| wordSpacing | number | 否 | - |
| showBaseline | checkbox | 否 | - |
| showGrid | checkbox | 否 | - |
| showBorder | checkbox | 否 | - |
| showHeader | checkbox | 否 | - |
| headerText | text | 否 | - |
| headerAlignment | select | 否 | - |
| showFooter | checkbox | 否 | - |
| footerText | text | 否 | - |
| footerAlignment | select | 否 | - |
响应格式
{
"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-typography-playground": {
"name": "pdf-typography-playground",
"description": "实验排版设置:行距、间距、对齐和缩进",
"baseUrl": "https://elysiatools.com/mcp/sse?toolId=pdf-typography-playground",
"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]