PDF Page Numbering Styles
Convert HTML to PDF with Roman, Arabic, or chapter-prefixed page numbers
Generate a PDF from HTML and stamp page numbers in the style you choose.
**Numbering styles:**
- Arabic or Roman numerals
- Chapter prefix with template support (use `{chapter}`)
- Optional total pages and custom prefix/suffix
**Placement:**
- Header or footer positions
- Custom edge offset and font size
API Documentation
Request Endpoint
POST /en/api/tools/pdf-page-numbering-styles
Request Parameters
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| htmlContent | textarea | Yes | - |
| cssContent | textarea | No | - |
| pageSize | select | No | - |
| landscape | checkbox | No | - |
| printBackground | checkbox | No | - |
| marginTop | number | No | - |
| marginBottom | number | No | - |
| marginLeft | number | No | - |
| marginRight | number | No | - |
| numberingStyle | select | No | - |
| startPageNumber | number | No | - |
| includeTotalPages | checkbox | No | - |
| chapterPrefixTemplate | text | No | - |
| chapterNumber | number | No | - |
| labelPrefix | text | No | - |
| labelSuffix | text | No | - |
| numberPosition | select | No | - |
| edgeOffsetMm | number | No | - |
| fontSize | number | No | - |
| fontColor | color | No | - |
| waitUntil | select | No | - |
| waitTime | number | 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-page-numbering-styles": {
"name": "pdf-page-numbering-styles",
"description": "Convert HTML to PDF with Roman, Arabic, or chapter-prefixed page numbers",
"baseUrl": "https://elysiatools.com/mcp/sse?toolId=pdf-page-numbering-styles",
"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]