pdfkit/wkhtmltopdf: When a header is invisible

Updated . Posted . Visible to the public.

If you're using the :header_html option in PDFKit (or the corresponding --header-html option in wkhtmltopdf), and the header remains invisible, you need to add this to your header HTML:

<!doctype html>

The same applies to footers via footer_html

I'm sorry.

Henning Koch
Last edit
Daniel Straßner
Keywords
pdfkit, wkhtmltopdf, header, footer, doctype
License
Source code in this card is licensed under the MIT License.
Posted by Henning Koch to makandra dev (2014-09-30 10:05)