Sometimes it is necessary to wait until the web is completely drawn before generating the PDF, for example by using jsMath to generate equations (or other JavaScript to do something). It would be interesting to have an option that lets you set the delay to ensure proper PDF generation.

Thank you very much for your work.

Comments

jcnventura’s picture

Status: Active » Fixed

Hi,

Since you're talking about Javascript, I am assuming you're using wkhtmltopdf.

In that case, you can add the "--javascript-delay " option at the bottom of admin/settings/print/pdf.

João

bigcrunch’s picture

Hi,
I can't use wkhtmltopdf because my web page is in a corporation server :( I use TCPDF

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

FranCarstens’s picture

Sorry for opening this again... is it possible to have a delay before the print dialogue is opened? (HTML version)

I'm having an issue where the browser doesn't always have time to load the images on the page before the dialogue opens. In Safari it freezes, and in Chrome it's rendering empty image blocks :(

I'm using higher resolution images for the print version (custom template) to get sharper output.

Thanks :D love this module!

FranCarstens’s picture

StatusFileSize
new71.31 KB
new68.94 KB

Oh, I forgot my screenshots. :(

jcnventura’s picture

FranCarstens’s picture

Thanks. :D