This release introduces breaking changes because html-pdf
/phantomjs
is replaced with puppeteer
(headless Chromium) to generate the PDF (will allow for more features in the future).
The old --html-pdf-options
/html_pdf_options
will not work anymore. Use --pdf-options
/pdf_options
instead. Refer to the Puppeteer docs for how to use them.
The way headers and footers work now has changed. Please refer to the updated readme section. Header/footer support in Puppeteer is not great yet, but will hopefully improve in the future.
If you want to keep using the old version with phantomjs
, just checkout the tag v1.2.1
and npm install -g
that instead.