title: TCPDF Progress Bar
body: <p>I am using php and TCPDF to generate a custom PDF file from several MySQL queries.  Once the user clicks the "Generate PDF" button a new tab opens and the PDF process starts.  It takes, on average, about 10 seconds to build the PDF.  Once the file is ready the browser closes the blank page and displays the save as dialog window.</p>
  
  <p>I'd like to display some type of message to the user while the PDF is creating.  I am somewhat of a noob when it comes to AJAX/JQUERY, but have tried to implement several solutions without success.</p>
  
  <p>Things to note:</p>
  
  <ol>
  <li>The backend is Joomla!</li>
  <li>Using <code>$pdf-&gt;Output('example.pdf','D')</code> to generate the pdf</li>
  <li>Using ob_end_clean prior to <code>$pdf-Output</code> to avoid the "TCPDF: Data already output" error.</li>
  </ol>
  
  <p>I have tried the method that adds a <code>&lt;div&gt;</code> to the end of my page as well as some jQuery/CSS that would show an animated gif while the page is loading.  It did not work, and I somehow get the feeling this is either caused by the ob_end_clean or the Joomla! framework.</p>