Issue Loading Callouts in 1.8 that were saved in 1.7

12 views
Skip to first unread message

Matt Parizeau

unread,
Sep 16, 2014, 8:01:04 PM9/16/14
to pdfnet-w...@googlegroups.com
Q:

We have created and saved callout annotations to XFDF when using WebViewer 1.7, however when we try to load those callouts in 1.8 they show up as a large bar from the top to the bottom of the screen. The other annotations seem to load fine. What is causing this issue?

A:

The issue you're running into with callout annotations is caused by a bug that was fixed in WebViewer 1.8. In 1.7 callout annotations would be saved to XFDF with an incorrect fringe attribute and incorrect attributes for colors, so if you tried to import these annotations back to a PDF and view it in Acrobat you would see that the callouts were displayed incorrectly. In 1.8 these issues have been fixed however it means that older callouts aren't able to be loaded correctly.

To upgrade your callouts to work with 1.8 we've created a script that you can run to get a fixed XFDF file. To use it you should modify convert.html and pass your files that you wish to fix to the upgradeXFDF function. The first parameter is the path to the XOD file, the second parameter is the path to the XFDF file and the last parameter is a callback that will get the data. In the handleData function you could modify it to possibly send the XFDF data to your server to be saved. As an example the updated XFDF is just logged to the console. Once you have replaced the old XFDF data with the updated data then it should be fixed. To run the script you just need to open the page on a server.
upgradeCallout.zip
Reply all
Reply to author
Forward
0 new messages