What is:
Array ( [0] => 5 [1] => Array ( [/Subtype] => Array ( [0] => 2 [1] => /Image ) [/Intent] => Array ( [0] => 2 [1] => /RelativeColorimetric ) [/Length] => Array ( [0] => 1 [1] => 1431417 ) [/Filter] => Array ( [0] => 2 [1] => /FlateDecode ) [/Name] => Array ( [0] => 2 [1] => /X ) [/BitsPerComponent] => Array ( [0] => 1 [1] => 8 ) [/ColorSpace] => Array ( [0] => 2 [1] => /DeviceCMYK ) [/Width] => Array ( [0] => 1 [1] => 935 ) [/DecodeParms] => Array ( [0] => 5 [1] => Array ( [/Columns] => Array ( [0] => 1 [1] => 935 ) [/Predictor] => Array ( [0] => 1 [1] => 15 ) [/BitsPerComponent] => Array ( [0] => 1 [1] => 1 ) [/Colors] => Array ( [0] => 1 [1] => 4 ) ) ) [/Height] => Array ( [0] => 1 [1] => 541 ) [/Type] => Array ( [0] => 2 [1] => /XObject ) ) ) And there is $stream , where there is a source image.
Problem: the simple gzubcompress($stream) method gzubcompress($stream) something, but this is not a picture. Hike it still need to somehow transform.
I enclose the data itself to verify the correctness of receiving the array:
29 0 obj <</Subtype/Image/Intent/RelativeColorimetric/Length 1431417/Filter/FlateDecode/Name/X/BitsPerComponent 8/ColorSpace/DeviceCMYK/Width 935/DecodeParms<</Columns 935/Predictor 15/BitsPerComponent 1/Colors 4>>/Height 541/Type/XObject>>stream I tried to save it in jpeg, jp2, jpg format - the picture does not open. I tried to open Imagick, who knows how to define what kind of .... without extensions on the inside. ()
Pdf version 1.7 Do not send the dock - already found, read, do not drive!)
If you can help, lay out the pdf parser! The text already gets.)