Document Tools
PDF页码样式
将HTML转换为PDF,并支持罗马/阿拉伯/章节前缀页码
file· 文件结果打开工具
快速开始
用三种语言从你的代码中调用此工具。
cURL
curl -X POST 'https://api.elysiatools.com/zh/api/tools/pdf-page-numbering-styles' \
-H 'Content-Type: application/json' \
-d '{"htmlContent":"\n<h1>Quarterly Report</h1>\n<p>This is a generated test document.</p>\n<div style=\"page-break-after: always;\"></div>\n<h2>Second Page</h2>\n<p>More sample content.</p>\n","cssContent":"\nbody { font-family: Arial, sans-serif; }\nh1, h2 { color: #1f2937; }\np { font-size: 12pt; }\n","pageSize":"A4","landscape":false,"printBackground":true,"marginTop":20,"marginBottom":20,"marginLeft":20,"marginRight":20,"numberingStyle":"arabic","startPageNumber":1,"includeTotalPages":true,"chapterPrefixTemplate":"Chapter {chapter} - ","chapterNumber":1,"labelPrefix":"Page ","labelSuffix":"","numberPosition":"footer-right","edgeOffsetMm":10,"fontSize":10,"fontColor":"#333333","waitUntil":"networkidle0","waitTime":0}'