分类

PDF页码样式

将HTML转换为PDF,并支持罗马/阿拉伯/章节前缀页码

将HTML渲染为PDF,并以指定样式叠加页码。 **页码样式:** - 阿拉伯或罗马数字 - 章节前缀(支持 `{chapter}` 模板) - 可选总页数与自定义前后缀 **位置:** - 页眉/页脚位置 - 边缘偏移与字号

API 文档

请求端点

POST /zh/api/tools/pdf-page-numbering-styles

请求参数

参数名 类型 必填 描述
htmlContent textarea -
cssContent textarea -
pageSize select -
landscape checkbox -
printBackground checkbox -
marginTop number -
marginBottom number -
marginLeft number -
marginRight number -
numberingStyle select -
startPageNumber number -
includeTotalPages checkbox -
chapterPrefixTemplate text -
chapterNumber number -
labelPrefix text -
labelSuffix text -
numberPosition select -
edgeOffsetMm number -
fontSize number -
fontColor color -
waitUntil select -
waitTime number -

响应格式

{
  "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-page-numbering-styles": {
      "name": "pdf-page-numbering-styles",
      "description": "将HTML转换为PDF,并支持罗马/阿拉伯/章节前缀页码",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=pdf-page-numbering-styles",
      "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]