alvarcarto / url-to-pdf-api

Web page PDF/PNG rendering done right. Self-hosted service for rendering receipts, invoices, or any content.
MIT License
7.01k stars 774 forks source link

Docs don't provide information about Adding Header/Footer to API service #181

Open dev-bddw opened 2 years ago

dev-bddw commented 2 years ago

The documentation here is really confusing about how to add footers to pdfs. Can anyone provide an example? I am trying to add a footer to my pdfs.

dev-bddw commented 2 years ago

"HTML template to use as the footer of each page in the PDF. Currently Puppeteer basically only supports a single line of text and you must use pdf.margins+CSS to make the footer appear! See #77."

This is what's mentioned in the parameter. None of these things are defined clearly. What is included w/ the parameter? The Html template? What? Can anyone clarify?