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

Maruan Sahyoun commented on PDFBOX-3353:
----------------------------------------

[~tilman] It would be very kind if you could review my last commit and initial 
attempt to generate an appearance stream. I've copied 
{{PDAppearanceContentStream}} from {{PDPageContentStream}} as some of the 
required variables for the constructors are not needed for annotations. Both 
should IMHO be based on a shared implementation which I didn't want to 
introduce at that point in time.

The overall idea is to have specific handlers per annotation type to deal with 
the generation of the appearance stream and allowing others to implement their 
own handler and set that using {{setCustomXXXAppearanceHandler}}.

If you like the approach I'll move forward.

> Create appearance streams for annotations
> -----------------------------------------
>
>                 Key: PDFBOX-3353
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3353
>             Project: PDFBox
>          Issue Type: Task
>          Components: PDModel, Rendering
>    Affects Versions: 1.8.12, 2.0.0, 2.0.1, 2.0.2, 2.1.0
>            Reporter: Tilman Hausherr
>              Labels: Annotations
>         Attachments: showAnnotation.java
>
>
> Create appearance streams for annotations when missing.
> I'll start by replacing current code for Ink and Link annotations.
> Good example PDFs:
> http://www.pdfill.com/example/pdf_commenting_new.pdf
> https://github.com/mozilla/pdf.js/issues/6810



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to