Skip to content

Header/Footer HTML Path #61

@gavinr

Description

@gavinr

When using wkhtmltopdf in command line, I can specify a local HTML file to use as the footer (or header):

wkhtmltopdf --footer-html .\footer.html .\content.html output.pdf

When I pass that reference in the options variable:

options = {"footer-html":"footer.html"}

... PDFKit never works for me. Passing a url (mentioned here) does work:

options = {"footer-html":"http://google.com"}

Two questions:

  1. Is it possible to pass a reference to a local HTML file?
  2. If so, where does the file need to be relative to? I have tried relative and absolute paths, neither seem to work.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions