You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Andreas Lehmkühler (Jira)" <ji...@apache.org> on 2019/12/23 22:17:02 UTC

[jira] [Closed] (PDFBOX-4672) Draws the attachment image to the PDF document, and the image displays as a black block

     [ https://issues.apache.org/jira/browse/PDFBOX-4672?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Lehmkühler closed PDFBOX-4672.
--------------------------------------

> 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
>            Assignee: Tilman Hausherr
>            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: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org