-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
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
How can I setup a customized footer by using this library? #118
Comments
this is my code: return new Promise((resolve, reject) => {
|
@DamengRandom this module is a wrapper around the wkhtmltopdf program. The footer options you are looking for are described in the core program documentation, not this module... Check here: https://wkhtmltopdf.org/usage/wkhtmltopdf.txt Then convert what option you need to camelCase in your options object. Eg. Example footer options (from original documentation)
|
Can you please show exactly how to use footerHtml? It requires a path to the file but it's always failing.
the imgs folder exists in the same folder of the script. I have tried ./imgs/footer.html as well, any idea? |
How can I setup customized footer by using this library?
I am trying to do something either this:
let options = {
'footer-html': '../../templates/banner-footer.html'
};
wkhtmltopdf(html, { pageSize: 'A4', disableSmartShrinking: true, options: options }, function (err, stream) { ... }
or this:
wkhtmltopdf(html, { pageSize: 'A4', disableSmartShrinking: true, footerHtml: '../../templates/banner-footer.html' }, function (err, stream) { ... }
All trials don't work? Any suggestions?
The text was updated successfully, but these errors were encountered: