[ 
https://issues.apache.org/jira/browse/FOP-3136?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17737147#comment-17737147
 ] 

Dave Roxburgh edited comment on FOP-3136 at 6/26/23 1:35 PM:
-------------------------------------------------------------

Hi [~apatecwitak] ,

Thanks for the great description and test resources.

The problem was a soft mask being corrupted as the external PDF was imported. 
The attached patch (p4.patch) resolves the issue. The attached resource 
(softmask.pdf) is referenced in the unit test included in the patch.

Regards,
Dave

[^p4.patch]
[^softmask.pdf]

^(fop-pdf-images 559c53d412f261f48cb545d4d8c85a843091c173)^


was (Author: JIRAUSER298677):
Hi [~apatecwitak] ,

Thanks for the great description and test resources.

The problem was a soft mask being corrupted as the external PDF was imported. 
The attached patch (p4.patch) resolves the issue. The attached resource 
(softmask.pdf) is referenced in the unit test included in the patch.

Regards,
Dave

[^p4.patch]
[^softmask.pdf]

> 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
>            Priority: Major
>         Attachments: p4.patch, resultA.pdf, resultB.pdf, resultC.pdf, 
> softmask.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