Skip to content
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

PDF is missing Charts. When used Google Charts, Nivo Chart and few other charts. #130

Open
chdharm opened this issue May 1, 2020 · 1 comment

Comments

@chdharm
Copy link

chdharm commented May 1, 2020

`const wkhtmltopdf = require('wkhtmltopdf');

//On local:3000 I am running the service which returns chart based web page.
const baseUrl = "http://localhost:3000/";
let fileName = "output.pdf";

wkhtmltopdf( baseUrl, { output: fileName }, function(){
console.log("Successfull")
});
`
No charts are printed in PDF. What should I do.
I know that if I can delay the PDF generation after page load but here in this API I have no such control.

@zxlin
Copy link
Collaborator

zxlin commented Jul 9, 2020

If the charts are running JS to be generated, they likely need time to be generated, you should see the docs on https://wkhtmltopdf.org/usage/wkhtmltopdf.txt

All options on there can be passed into this lib using camelCase

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants