分类

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]