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

Can't print the models with wkhtmltopdf #28

Open
xploshioOn opened this issue May 26, 2017 · 0 comments
Open

Can't print the models with wkhtmltopdf #28

xploshioOn opened this issue May 26, 2017 · 0 comments

Comments

@xploshioOn
Copy link

For some reason, everytime that I try to print the models with wkhtmltopdf, I get the same error, tested with the examples on the sandbox and the ones created by me.

xploshioon@personal ~ $ wkhtmltopdf --javascript-delay 4000 --debug-javascript file:///home/xploshioon/Desktop/JSModeler-master/sandbox/texture.html test.pdf
Loading pages (1/6)
Warning: undefined:0 TypeError: 'null' is not an object           
Counting pages (2/6)                                               
Resolving links (4/6)                                                       
Loading headers and footers (5/6)                                           
Printing pages (6/6)
Done                   

I even tried adding the js on the html directly and adding it to the end of the page, to be sure that the elements are rendered first. it's weird. I am trying to print some dynamic models pdf files, but for some reason it breaks everytime, if I open the browser console, there is no errors and the model is rendered.

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

1 participant