Hey guys,
This will be a two part question.
We have a PDF file (see attached) that has some PDF annotations on it, and the annotations show up fine in the Web Viewer Demo on the PDFTron site. However, when we convert to XOD and load in the web viewer (v1.8) on our end, the web viewer code throws the following error.
So, the first question is, can you see anything about this PDF that requires special handling, or particular web viewer settings in order to correctly render out these annotations? The only annotation types on the PDF are call out, text, arrow and line.
The second question comes out of our current work around for this problem. It's not strictly required that the annotations be editable / selectable after they are loaded in. It's more important that they simply show up. So, to work around the issue we just call PDFDoc.FlattenAnnotations on the PDF file before we convert to XOD. That works well, however, we noticed that bookmark links are also flattened during this process. External HTTP links work fine. So, the second question is, is there a way to flatten annotations without losing the bookmark links?
Thanks!
- Chris