Creating a stamp annotation from an image URL

59 views
Skip to first unread message

Matt Parizeau

unread,
Jun 17, 2016, 7:12:22 PM6/17/16
to PDFTron WebViewer
Q:

I know how to set the image of a stamp to a base 64 data URL (stampAnnot.ImageData = 'data:image/png;base64...') but can I point to an actual image on my server as well?

A:

Yes you can simply set ImageData to a URL and it should just work. If it's the image is cross-origin then make sure the proper cross-origin headers have been set up.

Reply all
Reply to author
Forward
0 new messages