smalot / pdfparser

PdfParser, a standalone PHP library, provides various tools to extract data from a PDF file.
GNU Lesser General Public License v3.0
2.42k stars 538 forks source link

PNG Images with FlateDecode are corrupt #688

Open MajedSardar64 opened 9 months ago

MajedSardar64 commented 9 months ago

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

k00ni commented 9 months ago

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

MajedSardar64 commented 8 months ago

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 commented 8 months ago

Will the application bug be fixed? K00ni boss

k00ni commented 8 months ago

Will the application bug be fixed?

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

ljwings commented 7 months ago

Is it solved now?

k00ni commented 7 months ago

Not to my knowledge.