pdfparser icon indicating copy to clipboard operation
pdfparser copied to clipboard

PNG Images with FlateDecode are corrupt

Open MajedSardar64 opened this issue 2 years ago • 12 comments

I try to extract all XObject (images) from the test pdf PNG Images not work.

MajedSardar64 avatar Mar 07 '24 10:03 MajedSardar64

Please provide a test PDF and further information about your setup (PHP version, PDFParser version, ...)

k00ni avatar Mar 07 '24 10:03 k00ni

test pdf-1: pngimage.pdf

PHP version: 7.4 or 8.0 + PDFParser version: v2.9.0 (Latest)

And sometimes the jpg/jpeg image is not.

code:- $parser = new \Smalot\PdfParser\Parser(); $pdf = $parser->parseFile($file); $images = $pdf->getObjectsByType('XObject', 'Image'); foreach( $images as $image ) { echo '';

MajedSardar64 avatar Mar 08 '24 14:03 MajedSardar64

Will the application bug be fixed? K00ni boss

MajedSardar64 avatar Mar 08 '24 21:03 MajedSardar64

Will the application bug be fixed?

When someone takes the time to work on it, yes. But I can't at the moment.

k00ni avatar Mar 11 '24 06:03 k00ni

Is it solved now?

ljwings avatar Apr 19 '24 04:04 ljwings

Not to my knowledge.

k00ni avatar Apr 19 '24 10:04 k00ni