You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pdfnet-w...@googlegroups.com
I need to display image annotations in the web viewer. It seems that XFDF doesn't permit this, however I'd like to know if it's possible to link an image inside an XFDF comment, e.g. <img src="http://myserver.com/pdf_file_id/annotation_image_1">
Matt Parizeau
unread,
Jun 19, 2014, 6:40:23 PM6/19/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pdfnet-w...@googlegroups.com
Yep, you could include the image link as a custom attribute in the XFDF. Take a look at the custom annotations sample, particularly the diamond.js file, and look for the serialize and deserialize functions. These functions are called when the annotation is being saved to XFDF or loaded from XFDF and is where you could save your link attribute. You would create an image element from that link and then in the draw function just draw the image to the canvas.