We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hey Mixu, it seems like puppeteer would make this a lot simpler.
Something like this works for the same thing, and allows headers and footers. It uses puppeteer which is headless chrome developed by google.
Honestly, it seems superior, and more up to date. I wonder if you should just deprecate this package and recommend this in the readme.
const puppeteer = require('puppeteer'); (async() => { const browser = await puppeteer.launch(); const page = await browser.newPage(); await page.goto('file:///C:/dev/wkhtmltesting/page-full.html'); await page.pdf({ path: 'page-full-pupp.pdf', format: 'A4', displayHeaderFooter: true, headerTemplate: '<div></div>', footerTemplate: '<div style="font-size: 12px; width: 100%; text-align: center; font-style: italic; padding-bottom: 0.5in; font-family: serif;">'+ 'Page <span class="pageNumber"></span>'+ '</div>', margin: { top: '0.5in', bottom: '1.5in', left: '1in', right: '1in', } }); await browser.close(); })();
The text was updated successfully, but these errors were encountered:
I'm open if you have arguments to why it's not better though!
Sorry, something went wrong.
No branches or pull requests
Hey Mixu, it seems like puppeteer would make this a lot simpler.
Something like this works for the same thing, and allows headers and footers. It uses puppeteer which is headless chrome developed by google.
Honestly, it seems superior, and more up to date. I wonder if you should just deprecate this package and recommend this in the readme.
The text was updated successfully, but these errors were encountered: