You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2014/10/01 22:20:33 UTC
[jira] [Commented] (PDFBOX-2398) Image transparency lost when
convert to an image
[ https://issues.apache.org/jira/browse/PDFBOX-2398?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14155432#comment-14155432 ]
Tilman Hausherr commented on PDFBOX-2398:
-----------------------------------------
This is related to transparency groups, which we support only partly in 2.0 (not 1.8.*), it is very complex. The rectangles are all black (CMYK with K = 1, i.e. black), however these are in XObject forms, and these are called with different graphic states, which have different "CA" values that go from 1 down to 0. "CA" = StrokingAlpaConstant. Thanks for submitting the test files, but it will probably take quite some time before this will be fixed.
> Image transparency lost when convert to an image
> ------------------------------------------------
>
> Key: PDFBOX-2398
> URL: https://issues.apache.org/jira/browse/PDFBOX-2398
> Project: PDFBox
> Issue Type: Bug
> Components: Rendering
> Affects Versions: 1.8.7, 2.0.0
> Reporter: ccouturi
> Labels: Transparency
> Attachments: test.pdf, test.png
>
>
> I try to convert a pdf file with transparent images to a image but the opacity is lost in the png result.
> It's seem to be the same issue than https://issues.apache.org/jira/browse/PDFBOX-993 (fixed in 1.6.0).
> I test with code: (1.8.7)
> pdPage.convertToImage(BufferedImage.TYPE_4BYTE_ABGR, 72);
> and with:
> java -jar pdfbox-app-1.8.7.jar PDFToImage -imageType png test.pdf
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)