[ https://issues.apache.org/jira/browse/PDFBOX-3000?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15660371#comment-15660371 ]
Tilman Hausherr edited comment on PDFBOX-3000 at 11/12/16 10:18 PM: -------------------------------------------------------------------- gs-bugzilla691157_mod_unc.pdf is a simplified version of the file from http://bugs.ghostscript.com/show_bug.cgi?id=691157 . That issue has an interesting comment by Michael Vrhel. The point he is making is that the ctm (and more) is to be stored for the softmask at the time of {{/GS0 gs}}, because at the time {{/Im28 Do}} is run it has already been changed. {code} /GS0 gs 180 0 0 135 258.411 235.714 cm /Im0 Do {code} As a test only, I hard coded that the ctm is not to be used for the rendering of the soft mask at two places (this works only for this file, because the ctm is identity at the time of the "gs" command), and now the cutout appears correctly (although there's wrong stuff outside of the mask). !gs-bugzilla691157_mod_unc.png! So we'll need to store the ctm and possibly the complete graphic state for a softmask at the time we encounter it, not at the time we apply it. was (Author: tilman): gs-bugzilla691157_mod_unc.pdf is a simplified version of the file from http://bugs.ghostscript.com/show_bug.cgi?id=691157 . That issue has an interesting comment by Michael Vrhel. The point he is making is that the ctm (and more) is to be stored for the softmask at the time of {{/GS0 gs}}, because at the time {{/Im28 Do}} is run it has already been changed. {code} /GS0 gs 180 0 0 135 258.411 235.714 cm /Im0 Do {code} As a test only, I hard coded that the ctm is not to be used for the rendering of the soft mask at two places (this works only for this file, because the ctm is identity at the time of the "gs" command), and now the cutout appears correctly (although there's wrong stuff outside of the mask). So we'll need to store the ctm and possibly the complete graphic state for a softmask at the time we encounter it, not at the time we apply it. > Transparency Group issues > ------------------------- > > Key: PDFBOX-3000 > URL: https://issues.apache.org/jira/browse/PDFBOX-3000 > Project: PDFBox > Issue Type: Bug > Components: Rendering > Affects Versions: 2.0.0 > Reporter: John Hewson > Fix For: 2.1.0 > > Attachments: 007087-payment-due-p58_reduced2.pdf, > PDFBOX-1697-reduced-rotations.pdf, PDFBOX-3400-RGB.pdf, > PDFBOX-3494_reduced.pdf, PDFBOX-3564-Mask.pdf, > PDFBox3359PanelTestEnhanced.java, PDFJS-2845-p1.pdf, > PDFJS-5811-2-p4_reduced-rotations.pdf, PDFJS-5811-2.pdf, > PDFJS-5853_reduced.pdf, gs-bugzilla691157.pdf, gs-bugzilla691157_mod_unc.pdf, > gs-bugzilla691157_mod_unc.png, gs-bugzilla691348.pdf, > gs-bugzilla693322_reduced.pdf, gs-bugzilla694556-3.pdf, > gs-bugzilla695354.pdf, gs-bugzilla695582-transparency-fill-stroke.pdf, > gs-bugzilla695582-transparency-fill-stroke.pdf-1.png, > samsung_galaxy_s_4_um-p1_reduced.pdf, softmask-rewrite-alt1.patch, > softmask-rewrite.patch > > > This is a follow-up issue for transparency group issues from PDFBOX-2423. > More details to come. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org