Similary you can merge and extract annotations and forms (as XFDF or FDF) from/to PDF using PDFDoc.FDFExtract/FDFMerge() methods. For an example of how to do this, please see FDFTest sample:
Annotations (i.e. XFDF) are not embedded in XOD as part of conversion (pdftron.PDF.Convert.ToXod()) because in the collaborative environment they are supposed to be kept in a database (editing XFDF embedded in XOD would not be efficient/effective) .
Having said this you can extract XFDF from PDF at the same time you are generating XOD. You would store XFDF in your DB and would load it (via WebViewer annotation manager) each time document/XOD it loaded.
On Thursday, October 25, 2012 7:43:00 AM UTC-7, lmvco wrote:
Well, I am not using the annotation tool in WebViewer. My scenario is very simple:
- then, in WebViewer, I want to get access to that annotations using a Javascript API
So, from your answer, can we conclude that annotation manager ignore all annotations created in XOD files (using Annots API) and only handle annotations in XPDF format (regardless the method that they are loaded/saved) ?
Thanks