Advertisement
Guest User

Untitled

a guest
Nov 27th, 2014
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. 56 0 obj
  2. << /Length 1242 /Filter /FlateDecode >>
  3. stream
  4. x]êΩnƒ Ñ{ûbÀKq¬æâê¢....(whole binary is omitted)
  5. endstream
  6. endobj
  7.  
  8. qpdf --qdf in.pdf out.pdf
  9.  
  10. header('Content-Type: text'); // I going to download the result of decoding
  11. $n = "binary_file.bin"; // decoded part in file in a directory
  12. $f = @fopen($n, "rb"); // now file is mine
  13. $c = fread($f, filesize($n)); // now I know all about it
  14. $u = @gzuncompress($c); // function, exactly fits for this /FlateDecode filter
  15. $out = fopen("php://output", "wb"); // ready to output anywhere
  16. fwrite($out, $u);// output to downloadable file
  17.  
  18. FlateFilter filter = new FlateFilter(null);
  19. byte[] decoded = filter.decode(bytes, start, end - start);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement