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.3k stars 534 forks source link

PNG Images with FlateDecode are corrupt #688

Open MajedSardar64 opened 3 months ago

MajedSardar64 commented 3 months ago

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

k00ni commented 3 months ago

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

MajedSardar64 commented 3 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 3 months ago

Will the application bug be fixed? K00ni boss

k00ni commented 3 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 2 months ago

Is it solved now?

k00ni commented 2 months ago

Not to my knowledge.