DinkToPdf icon indicating copy to clipboard operation
DinkToPdf copied to clipboard

Print before the page finish loading or JavaScript not working

Open darren-zdc opened this issue 5 years ago • 4 comments

Can any one use this library to print this chart graph ?

The link comes from chartjs.com. Not matter how I config the LoadSettings or Websettings, the library is not going to print the graph for me.. I only get the below text... But if I do window.print() inside the web, I will get the graph

Any suggestions will be very appreciated!!

darren-zdc avatar Apr 05 '19 18:04 darren-zdc

There is a good option to wait for a certain window-status that you set in Javascript. Unfortunately this option is not exposed and only works, when running via command line. https://wkhtmltopdf.org/usage/wkhtmltopdf.txt. I would like to use it as well. For now we have to work with the JSDelay option in the LoadSettings:

LoadSettings = new LoadSettings { JSDelay = 500 }

nicknijenhuis avatar May 13 '19 09:05 nicknijenhuis

I'm having the same problem. Did you find any solution to this?

Vykos00 avatar Nov 20 '19 11:11 Vykos00

bump Same issue here.. Any solutions? JSDelay doesn't work for me.

csharpforevermore avatar Sep 15 '20 08:09 csharpforevermore

Same issue for me. Anyone have a solution?

ehrowe avatar Jul 15 '21 17:07 ehrowe