title: Replacement PDFTK with ghostscript
body: <p>We've just moved hosting to a new server and hosting company. After the moved we've noticed there's a function we've missed during testing. The function creates PDFs with pdftk:</p>
  
  <pre><code>exec('pdftk mypdf.pdf fill_form mydata.fdf output myoutput.pdf flatten', $output);
  </code></pre>
  
  <p>Problem is, there's no pdftk on the new server and we also couldn't get it. Only three PDF related tools are available.</p>
  
  <ol>
  <li>PDF-Tools</li>
  <li>HTMLDoc</li>
  <li>Ghostscript</li>
  </ol>
  
  <p>PDF-Tools and HTMLDoc doesn't work due to a lack of functions.</p>
  
  <p>Is there a way to replace the command line we have at the moment we ghostscript or is there maybe a PHP Library i haven't found yet?</p>