[
https://issues.apache.org/jira/browse/PDFBOX-2019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14217570#comment-14217570
]
Maruan Sahyoun commented on PDFBOX-2019:
----------------------------------------
The issue is because
- the Annotation.java creates different annotations
- there are no appearances generated for the annotations (which is correct as
the the AP entry is optional)
- we don’t have handlers for displaying annotations which don’t contain
appearances with a default visual style
- we don’t have standard visual styles which could be used for creating
appearances for different annotation types
- Adobe Reader and some other viewers have handlers for displaying
Although we could enhance the sample to create appearances for the annotations
the correct solution would be to introduce handlers for different appearances
which are used if there is no appearance defined for the rendering applications
we have. They could also be used to generate an appearance if the user chooses
to do so when creating the annotation.
IMHO we should move that to 2.1 as this is a considerable amount of work to do
it properly. Some of that could be based on the current - still incomplete -
work I’m doing on AcroForms as there are similar issues.
> Annotations produced by Annotation.java example are not rendered correctly
> --------------------------------------------------------------------------
>
> Key: PDFBOX-2019
> URL: https://issues.apache.org/jira/browse/PDFBOX-2019
> Project: PDFBox
> Issue Type: Bug
> Components: Rendering
> Affects Versions: 2.0.0
> Environment: Windows 7
> java version "1.7.0_04"
> Java(TM) SE Runtime Environment (build 1.7.0_04-b22)
> Java HotSpot(TM) 64-Bit Server VM (build 23.0-b21, mixed mode)
> Reporter: Stan Taylor
> Labels: Annotations
> Fix For: 2.0.0
>
> Attachments: Annotation.pdf
>
>
> The sample PDF produced by
> /examples/src/main/java/org/apache/pdfbox/examples/pdmodel/Annotation.java
> cannot be properly displayed by the pdfbox-app-2.0.0-SNAPSHOT's PDFReader
> function -- the circle, square, and line annotations are not visible.
> Unknown if this is a problem with the Annotation.java example, the
> pdfbox-app, or with the library itself.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)