Rafael Witak created FOP-3136:
---------------------------------

             Summary: FOP PDF Images - Some PDFs produce Error in Acrobat Reader
                 Key: FOP-3136
                 URL: https://issues.apache.org/jira/browse/FOP-3136
             Project: FOP
          Issue Type: Bug
            Reporter: Rafael Witak
         Attachments: resultA.pdf, resultB.pdf, resultC.pdf, sourceA.pdf, 
sourceB.pdf, sourceC.pdf

Including some PDFs as external-document results in a PDF that produces an 
error in Acrobat Reader (but not in Chrome!). The error message reads "{*}There 
was an error processing a page. There was a problem reading this document{*} 
{*}(18).{*}" and after Ctrl-click on OK "{*}Expected a name object{*}{*}.{*}" 
is added. No page is visible.

The issue can be traced back to FOP PDF Images and exists in all its versions 
>=2.6. Versions 2.5 and lower produce results that work.

While the original PDFs do have some issues when checked with a tool like 
[pdfcpu|https://github.com/pdfcpu/pdfcpu/releases/tag/v0.4.0], others with 
similar issues don't produce the same error. The originals _can_ be opened by 
Adobe Reader without a problem.

No ERROR or WARNING is logged. Searching on Google / Jira / the mailing list 
did not produce comparable problems.

Due to the fact that I get the copyrighted PDFs as-is by the customer, I don't 
have much freedom in either changing them to work around the problems, or 
provide too many examples.



Windows 10.0.19045 Build 19045
Java 17
FOP 2.8
PDFBox 2.0.28
PDF Images 2.8

(Included are three example documents with their respective results.)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to