[
https://issues.apache.org/jira/browse/PDFBOX-2507?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14218191#comment-14218191
]
John Hewson commented on PDFBOX-2507:
-------------------------------------
There's no workaround for PDFBOX-2019, because it's a lot of work for us to
support default styles. Setting the appearance stream isn't really necessary
(although we would like to do this), as PDFs without appearance streams are
perfectly valid. The bug is really that our renderer doesn't have any built-in
default appearances to use for the various annotations.
> Annotation example not rendered to image
> ----------------------------------------
>
> Key: PDFBOX-2507
> URL: https://issues.apache.org/jira/browse/PDFBOX-2507
> Project: PDFBox
> Issue Type: Bug
> Components: Rendering
> Affects Versions: 2.0.0
> Reporter: Adi
> Priority: Critical
> Labels: Annotations
> Fix For: 2.0.0
>
> Attachments: example.jpg, example.pdf
>
>
> taking the code from the example at
> examples/src/main/java/org/apache/pdfbox/examples/pdmodel/Annotation.java
> add the following lines at the end (before the finally):
> BufferedImage image = new PDFRenderer(document).renderImageWithDPI(0, 600);
> ImageIO.write(image, "jpg", new File("example.jpg"));
> and the image contains only the text without any annotation.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)