[
https://issues.apache.org/jira/browse/PDFBOX-3564?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15657737#comment-15657737
]
Tilman Hausherr edited comment on PDFBOX-3564 at 11/11/16 6:28 PM:
-------------------------------------------------------------------
Thank you. Sadly it only influences 2 files (gs-bugzilla691157.pdf and
gs-bugzilla691348.pdf - even these are not perfect, there are still
transparency problems left that are not related to your change), which I just
added to PDFBOX-3000, which is the main issue for transparency issues. I've
added you as a watcher there.
Your change has not been added to the 2.0 version yet, but I will do it before
the next release. None of my recent changes in PDFBOX-3000 has been added yet.
was (Author: tilman):
Thank you. Sadly it only influences 2 files (gs-bugzilla691157.pdf and
gs-bugzilla691348.pdf - even these are not perfect, there are still
transparency problems left that are not related to your change), which I just
added to PDFBOX-3000, which is the main issue for transparency issues. I've
added you as a watcher there.
Your change has not been added to the 2.0 version yet, but I will do it before
the next release. None of my recent changes in PDFBOX-3000 has been yet.
> SoftMask needs consider colormodel of input Image
> -------------------------------------------------
>
> Key: PDFBOX-3564
> URL: https://issues.apache.org/jira/browse/PDFBOX-3564
> Project: PDFBox
> Issue Type: Improvement
> Components: Rendering
> Affects Versions: 2.0.3
> Reporter: Matthias Bläsing
> Attachments: MaskRendering.pdf, softmask.patch
>
>
> I'm currently following a rendering problem of a poster. While doing so I
> found a first lead, that resulted in a first patch.
> The PDF I'll attach contains an image with a mask applied to it. If rendering
> works correctly, only a single green "OK" should be visible. With pdfbox
> 2.0.3 and HEAD I get a white sheet.
> I tracked this down into SoftMask.java. There a source raster is sampled by
> querying the pixel data via getPixel(int,int,int[]). This will only work
> correctly for RGBA input sources. In my case the input image is an RGB image
> and getPixel does not overwrite the initial 0 value in the rgba value array.
> The attached patch uses the colormodel corresponding to the source raster to
> convert into the components. This correctly returns the alpha value of an RGB
> image as 255.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]