title: wkhtmltopdf wait for condition before printing
body: <p>We are using wkhtmltopdf to convert dynamic html pages to pdf.
  We need to wait until all the ajax requests are finished.</p>
  
  <p>Is there a possibility to delay the printing by a condition?</p>