wkhtmltopdf wait for condition before printing

Levi picture Levi · May 14, 2014 · Viewed 9.7k times · Source

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?

Answer

ashkulz picture ashkulz · May 15, 2014

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