PDF Basic Document Generator (PDF基础文档生成器)
Create PDF documents with text, paragraphs, headers, footers, and page numbers
This tool generates professional PDF documents with the following features:
**Content Features:**
- Multi-paragraph text input
- Optional title page with document metadata
- Automatic page breaks
- Chinese character support
**Page Layout:**
- Multiple page sizes (A4, Letter, Legal, A5)
- Portrait or landscape orientation
- Adjustable margins on all sides
- Customizable font size and line height
**Header & Footer:**
- Optional header text with alignment
- Optional footer text with placeholders ({page}, {total})
- Configurable page number positions
- Automatic page numbering
**Output:**
- High-quality PDF with embedded fonts
- Downloadable file with timestamp
- File metadata and statistics
API Documentation
Request Endpoint
POST /en/api/tools/pdf-basic-text-doc
Request Parameters
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| content | textarea | Yes | - |
| title | text | No | - |
| pageSize | select | No | - |
| orientation | select | No | - |
| fontSize | number | No | - |
| lineHeight | number | No | - |
| marginTop | number | No | - |
| marginBottom | number | No | - |
| marginLeft | number | No | - |
| marginRight | number | No | - |
| showHeader | checkbox | No | - |
| headerText | text | No | - |
| headerAlignment | select | No | - |
| showFooter | checkbox | No | - |
| footerText | text | No | - |
| footerAlignment | select | No | - |
| showPageNumbers | checkbox | No | - |
| pageNumberPosition | select | No | - |
Response Format
{
"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)"
}
File:
File
AI MCP Documentation
Add this tool to your MCP server configuration:
{
"mcpServers": {
"elysiatools-pdf-basic-text-doc": {
"name": "pdf-basic-text-doc",
"description": "Create PDF documents with text, paragraphs, headers, footers, and page numbers",
"baseUrl": "https://elysiatools.com/mcp/sse?toolId=pdf-basic-text-doc",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}
You can chain multiple tools, e.g.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 tools.
If you encounter any issues, please contact us at [email protected]