title: FPDI Fatal error: Uncaught exception 'Exception' with message 'Unable to find object (1, 0)
body: <p>I'm trying to import a pdf with php class FPDI with this simple code:</p>
  
  <pre><code>require_once("fpdf/fpdf.php");
  require_once("fpdi/fpdi.php");
  $pdf = new FPDI();
  $pdf-&gt;setSourceFile('intermedia.pdf');
  $tplidx = $pdf-&gt;ImportPage(1);
  $pdf-&gt;AddPage();
  $pdf-&gt;useTemplate($tplidx,0,0,210);
  $pdf-&gt;Output();
  </code></pre>
  
  <p>but I receive the following error:</p>
  
  <blockquote>
    <p>Warning: explode() [function.explode]: Empty delimiter. in
    /var/catalogo/test_pdf/fpdi/pdf_parser.php on line 369</p>
    
    <p>Fatal error: Uncaught exception 'Exception' with message 'Unable to
    find object (1, 0) at expected location.' in
    /var/catalogo/test_pdf/fpdi/pdf_parser.php:709 Stack trace: #0
    /var/catalogo/test_pdf/fpdi/pdf_parser.php(268):
    pdf_parser->resolveObject(Array) #1
    /var/catalogo/test_pdf/fpdi/pdf_parser.php(208):
    pdf_parser->_readRoot() #2
    /var/catalogo/test_pdf/fpdi/fpdi_pdf_parser.php(71):
    pdf_parser->__construct('/var/catalogo/t...') #3
    /var/catalogo/test_pdf/fpdi/fpdi.php(128):
    fpdi_pdf_parser->__construct('/var/catalogo/t...') #4
    /var/catalogo/test_pdf/fpdi/fpdi.php(108):
    FPDI->_getPdfParser('/var/catalogo/t...') #5
    /var/catalogo/test_pdf/index.php(5):
    FPDI->setSourceFile('intermedia.pdf') #6 {main} thrown in
    /var/catalogo/test_pdf/fpdi/pdf_parser.php on line 709</p>
  </blockquote>
  
  <p>This is the file that should be imported:
  <a href="http://catalogo.selectaspa.it/test_pdf/intermedia.pdf" rel="nofollow">http://catalogo.selectaspa.it/test_pdf/intermedia.pdf</a></p>