title: FPDF error: This document (testcopy.pdf) probably uses a compression technique which is not supported by the free parser shipped with FPDI
body: <p>I am running the following code and giving me this error : <code>FPDF error: This document (testcopy.pdf) probably uses a compression technique which is not supported by the free parser shipped with FPDI.</code> I used another pdf named <code>test.pdf</code> and that works fine but it is giving me error in <code>testcopy.pdf.</code> </p>
  
  <p>I think this is parser problem. Anyone know any other parser that can be used with fpdf to avoid this error?</p>
  
  <p><strong>My code:</strong></p>
  
  <pre><code>require('fpdf17/fpdf.php'); 
  require('fpdf17/fpdi.php'); 
  // initiate FPDI 
  $pdf = new FPDI(); 
  while (ob_get_level())
  ob_end_clean();
  header("Content-Encoding: None", true);
  // set the sourcefile 
  $pagecount = $pdf-&gt;setSourceFile('testcopy.pdf');
  </code></pre>
  
  <p>I want to split pdf in two pdfs and want to attach both pdfs in file attachments field.How to save pdf to server. Can it be possible with fpdf?</p>