title: Is there a way to make FPDF/FPDI or Zend_Pdf support the parsing of PDFs greater than 1.4?
body: <p>I am trying to add an existing PDF (created otherwise) to a PDF created with FPDF using FPDI. It seems to work find for most PDFs, but I get the following error:</p>
  
  <pre><code>FPDF error: Unable to find xref table.
  </code></pre>
  
  <p>After some testing, I figured out that if I use a PDF version of 1.4 or lower (Acrobat v5 or lower) it seems to work. Looking at the file it seems to be because of a different PDF format.</p>
  
  <p>Is there a work around or solution to this? I have probably 10 000+ PDFs uploaded by users, some of the new working, some of them not. It's also annoying that FPDI just dies instead of causing some kind of error or even returning false</p>
  
  <p>The only solution I can think of right now is to parse the first line of the PDF file to determine the version and only add the ones that over versions that will work.</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>I also tried this in Zend_Pdf and it had the following result, using the demo file that comes with the Zend Framework:</p>
  
  <pre><code>Fatal error: Uncaught exception 'Zend_Pdf_Exception' with message 'Cross-reference streams are not supported yet.' in /Volumes/Documents/temp/ZendFramework-1.7.7/library/Zend/Pdf/Parser.php:331
  Stack trace:
  #0 /Volumes/Documents/temp/ZendFramework-1.7.7/library/Zend/Pdf/Parser.php(455): Zend_Pdf_Parser-&gt;_loadXRefTable('116')
  #1 /Volumes/Documents/temp/ZendFramework-1.7.7/library/Zend/Pdf.php(297): Zend_Pdf_Parser-&gt;__construct('/Volumes/Docume...', Object(Zend_Pdf_ElementFactory_Proxy), true)
  #2 /Volumes/Documents/temp/ZendFramework-1.7.7/library/Zend/Pdf.php(250): Zend_Pdf-&gt;__construct('/Volumes/Docume...', NULL, true)
  #3 /Volumes/Documents/temp/ZendFramework-1.7.7/demos/Zend/Pdf/demo.php(37): Zend_Pdf::load('/Volumes/Docume...')
  #4 {main}
    thrown in /Volumes/Documents/temp/ZendFramework-1.7.7/library/Zend/Pdf/Parser.php on line 331
  </code></pre>
  
  <p>Is it impossible to parse PDFs greater than 1.4?</p>