pdfbox-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tilman Hausherr (Jira)" <j...@apache.org>
Subject [jira] [Commented] (PDFBOX-4672) Draws the attachment image to the PDF document, and the image displays as a black block
Date Tue, 22 Oct 2019 19:07:00 GMT

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

Tilman Hausherr commented on PDFBOX-4672:
-----------------------------------------

This is not a PNG, this is a GIF image. I suspect that the transparency is somehow "lost".

> Draws the attachment image to the PDF document, and the image displays as a black block
> ---------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-4672
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4672
>             Project: PDFBox
>          Issue Type: Bug
>            Reporter: bai yuan
>            Priority: Major
>         Attachments: ImageTest.zip, image1.png
>
>
> [^ImageTest.zip]!image1.png!
> {code:java}
>  pdImage = PDImageXObject.createFromFile("Resources\\image1.png", doc);
>  PDPageContentStream contents = new PDPageContentStream(doc, page);
>  contents.drawImage(pdImage, 100, 100);
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org


Mime
View raw message