分类

PDF基础文档生成器

创建包含文本、段落、页眉页脚和页码的PDF文档

此工具生成专业的PDF文档,具有以下功能: **内容功能:** - 多段落文本输入 - 可选标题页及文档元数据 - 自动分页 - 中文字符支持 **页面布局:** - 多种页面尺寸(A4、Letter、Legal、A5) - 纵向或横向方向 - 可调整所有边距 - 可自定义字体大小和行高 **页眉页脚:** - 可选的页眉文本及对齐方式 - 可选的页脚文本及占位符({page}、{total}) - 可配置的页码位置 - 自动页码编号 **输出:** - 嵌入字体的高质量PDF - 带时间戳的可下载文件 - 文件元数据和统计信息

API 文档

请求端点

POST /zh/api/tools/pdf-basic-text-doc

请求参数

参数名 类型 必填 描述
content textarea -
title text -
pageSize select -
orientation select -
fontSize number -
lineHeight number -
marginTop number -
marginBottom number -
marginLeft number -
marginRight number -
showHeader checkbox -
headerText text -
headerAlignment select -
showFooter checkbox -
footerText text -
footerAlignment select -
showPageNumbers checkbox -
pageNumberPosition 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-basic-text-doc": {
      "name": "pdf-basic-text-doc",
      "description": "创建包含文本、段落、页眉页脚和页码的PDF文档",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=pdf-basic-text-doc",
      "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]