Skip to content

[Feature Request] Add support for PDF headers and footers (from html files) #9463

Description

@Foitn

With the old wkhtmltopdf there was the option to add html files to generate a header and footer for the pdf using the --header-html flag.
Now with the new pdf generation library (the chromium one) this option is gone.
It would be great if it were possible to add these headers from html files, in a similar fashion.
Could be the same as for the cover page, so it could look something like this:

pdf: true
pdfTocPage: true
pdfFileName: MyAmazingPdf
pdfCoverPage: articles/some-document/0-cover.html
pdfPageHeader: articles/pdf-header.html
pdfPageFooter: articles/pdf-footer.html
# Optionally even
pdfCoverPageNoHeaderFooter: true

Metadata

Metadata

Assignees

No one assigned

    Labels

    pdfProduce PDF as the output format

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions