Search code examples
pdf-generationwkhtmltopdfhtml-to-pdf

wkhtmltopdf wait for condition before printing


We are using wkhtmltopdf to convert dynamic html pages to pdf. We need to wait until all the ajax requests are finished.

Is there a possibility to delay the printing by a condition?


Solution

  • You can use the --window-status option, see this post on the mailing list.