How can I extract annotation appearance data from an existing pdf?

153 views
Skip to first unread message

Aleks Clark

unread,
Jun 18, 2014, 2:46:35 PM6/18/14
to pdfne...@googlegroups.com
opening a pdf as PDFDoc, and then extracting/saving FDF and XFDF produces very truncated fields, with no appearance data (i.e. the stamp icons, etc are missing).

This is for use with the Webviewer, so even if we can't actually have them as annotations, we'd like to be able to traverse and extract the data so that it can be re-merged later, and perhaps displayed elsewhere.

Thanks,

Aleks

Ryan

unread,
Jun 19, 2014, 7:55:57 PM6/19/14
to pdfne...@googlegroups.com
Hi Aleks,

The XFDF spec doesn't officially provide support for custom appearance data. However, since it is XML, it is possible to add base64 data. So it is certainly possible to convert annotations with appearance streams into an image, base64 it, and add the base64 data and any required positioning data into the XFDF.

Support

unread,
Jun 20, 2014, 1:59:44 AM6/20/14
to pdfne...@googlegroups.com

FYI: This feature option (in support of WebViewer) will be available soon :)
Reply all
Reply to author
Forward
0 new messages