[
https://issues.apache.org/jira/browse/PDFBOX-4672?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16957532#comment-16957532
]
Tilman Hausherr commented on PDFBOX-4672:
-----------------------------------------
Our releases are usually every 3-4 months and we just had one. What you could
do:
get a snapshot (in a few hours) at
[https://repository.apache.org/content/groups/snapshots/org/apache/pdfbox/pdfbox-app/2.0.18-SNAPSHOT/]
or a workaround: try saving your file as a PNG and reloading it. Or copy your
image into an ARGB image, i.e. make sure that {{image.getType() !=
BufferedImage.TYPE_BYTE_GRAY && image.getType() !=
BufferedImage.TYPE_BYTE_BINARY}}
> 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
> Components: PDModel
> Affects Versions: 2.0.17
> Reporter: bai yuan
> Priority: Major
> Fix For: 2.0.18, 3.0.0 PDFBox
>
> 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: [email protected]
For additional commands, e-mail: [email protected]