Repository navigation
Closed
Labels
Description
Is there an existing issue for this?
- I have searched the existing issues and found no similar reports
Are you using the latest version of this package?
- The issue I'm reporting exists in the latest release
Can other PDF readers read the file?
- The PDF I'm trying to read opens correctly in at least one other PDF reader
When running this snippet
$document = (new PdfParser())->parseFile('pdf_notparsed_8026havt4b7r5iU7FEF.pdf');
$document->getText();I run into the following issue/exception (Please attach the pdf)
Uncaught PrinsFrank\PdfParser\Exception\ParseFailureException: Content "binary" cannot be decoded for filter "ASCII_85_DECODE" in ~/pdfparser/vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryValue/Name/FilterNameValue.php:43
Stack trace:
#0 ~/pdfparser/vendor/prinsfrank/pdfparser/src/Document/Object/Item/CompressedObject/CompressedObjectContent/CompressedObjectContentParser.php(33): PrinsFrank\PdfParser\Document\Dictionary\DictionaryValue\Name\FilterNameValue->decodeBinary(' GauHO8W,.?&\\e...', NULL)
#1 ~/pdfparser/vendor/prinsfrank/pdfparser/src/Document/Object/Item/UncompressedObject/UncompressedObject.php(95): PrinsFrank\PdfParser\Document\Object\Item\CompressedObject\CompressedObjectContent\CompressedObjectContentParser::parseBinary(Object(PrinsFrank\PdfParser\Stream\InMemoryStream), 303, 4645, Object(PrinsFrank\PdfParser\Document\Dictionary\Dictionary))
#2 ~/pdfparser/vendor/prinsfrank/pdfparser/src/Document/Object/Decorator/Page.php(37): PrinsFrank\PdfParser\Document\Object\Item\UncompressedObject\UncompressedObject->getContent(Object(PrinsFrank\PdfParser\Document\Document))
#3 [internal function]: PrinsFrank\PdfParser\Document\Object\Decorator\Page->{closure:PrinsFrank\PdfParser\Document\Object\Decorator\Page::getContentStream():37}(Object(PrinsFrank\PdfParser\Document\Object\Decorator\GenericObject))
#4 ~/pdfparser/vendor/prinsfrank/pdfparser/src/Document/Object/Decorator/Page.php(36): array_map(Object(Closure), Array)
#5 ~/pdfparser/vendor/prinsfrank/pdfparser/src/Document/Object/Decorator/Page.php(27): PrinsFrank\PdfParser\Document\Object\Decorator\Page->getContentStream()
#6 ~/pdfparser/vendor/prinsfrank/pdfparser/src/Document/Document.php(152): PrinsFrank\PdfParser\Document\Object\Decorator\Page->getText()
#7 ~/pdfparser/extract.php(15): PrinsFrank\PdfParser\Document\Document->getText()
#8 {main}
thrown in ~/pdfparser/vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryValue/Name/FilterNameValue.php on line 43
pdf_notparsed_8026havt4b7r5iU7FEF.pdf
Do you allow attachment files to be used in tests to prevent regressions?
- Yes, I give permission to use this file as a test file to prevent future regressions (And am authorized to give this permission)
Activity
Add sample from issue #153 with ASCII85Decode filter
Implement ASCII85Decode (#279)
Implement ASCII85Decode (#279)