title: Data extraction from /Filter /FlateDecode PDF stream in PHP
body: <p>I can not decrypt the data from the stream like:</p>
  
  <pre><code>    56 0 obj 
      &lt;&lt; /Length 1242 /Filter /FlateDecode &gt;&gt;
      stream
      x]êΩnƒ Ñ{ûbÀKq¬æ\âê¢....(whole binary is omitted)
      endstream
      endobj
  </code></pre>
  
  <p>I tried isolate the binary content (<code>x]êΩnƒ Ñ{ûbÀKq¬æ\âê¢....</code>) in a file and in a binary string. Decoding function <code>gzinflate($encripted_data)</code> sends me error of decoding, and I think it happens because encoded content in not "deflated" or so.</p>
  
  <p>In PDF Reference v 1.7, (six edition), on a page 67, I found the description of /FlateDecode filter as: <em>...Decompresses data encoded using the zlib/deflate compression method, reproducing the original text or binary data</em></p>
  
  <p>I need real raw solution, aka php function or/and algorithm what to do with this "\FlateDecoded" stream.</p>
  
  <p>Thank You! </p>