You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by Sameer Kalburgi <sa...@fieldwire.com> on 2015/08/14 01:07:30 UTC
How to set the appearance stream entry for a PDAnnotation?
As mentioned here: https://issues.apache.org/jira/browse/PDFBOX-2019, I'm
trying to generate an appearance stream so viewers beyond Adobe Acrobat
will correctly display annotations.
What exactly is supposed to go into the appearance dictionary for a
PDAnnotationPolyline or PDAnnotationPolygon?
Ref:
http://pdfbox.apache.org/docs/1.8.9/javadocs/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotation.html#setAppearance(org.apache.pdfbox.pdmodel.interactive.annotation.PDAppearanceDictionary)
Re: How to set the appearance stream entry for a PDAnnotation?
Posted by Maruan Sahyoun <sa...@fileaffairs.de>.
Hi,
> Am 14.08.2015 um 01:07 schrieb Sameer Kalburgi <sa...@fieldwire.com>:
>
> As mentioned here: https://issues.apache.org/jira/browse/PDFBOX-2019, I'm
> trying to generate an appearance stream so viewers beyond Adobe Acrobat
> will correctly display annotations.
>
> What exactly is supposed to go into the appearance dictionary for a
> PDAnnotationPolyline or PDAnnotationPolygon?
the details of the content of the appearance stream for annotations - as Acrobat creates them - are not part of the PDF specification. What I've done when looking at doing the same for form fields is have some sample files created with Acrobat, inspecting the content using the PDFDebugger and replicate that.
BR
Maruan
>
> Ref:
> http://pdfbox.apache.org/docs/1.8.9/javadocs/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotation.html#setAppearance(org.apache.pdfbox.pdmodel.interactive.annotation.PDAppearanceDictionary)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org