📄️ Page
bkhtmltopdf adheres to standard HTML/CSS specifications, allowing you to freely write HTML code to define page layouts.
📄️ Margin
bkhtmltopdf supports page margin configuration via CSS @page rules, using margin-* properties to define top, right,
📄️ Header
In many scenarios, adding a header is required. bkhtmltopdf, based on Chromium, supports custom header templates.
📄️ Footer
In many scenarios, adding a footer is required. bkhtmltopdf, based on Chromium, supports custom footer templates.
📄️ Page number
Page numbers can be displayed using the counter feature
📄️ Page Breaks
You can refer to the MDN documentation:
📄️ Outline
Generating a PDF outline is very simple true, and bkhtmltopdf will automatically create a document outline based on h1-h6 tags.