i have some question about the object model of annotations in the webviewer api. There is some way to get the “NM” and “IRT” value to identify the annotation object in the viewer?
JES: => how?
NO: => There ia another way to identify the objects? (through the xfdf document which is include in the xod document?)
thanks for helping
When a PDF document with annotations is converted to XOD the annotation data will be stored in the XOD’s internal XFDF file. In XFDF “NM” maps to the “name” attribute and “IRT” maps to “inreplyto”. If you just want the entire XFDF data then you can call ExportAnnotations() on AnnotationManager (readerControl.docViewer.GetAnnotationManager()).
Currently WebViewer exposes the name attribute as the “Id” property (e.g. myAnnotation.Id) however it doesn’t expose inreplyto at the current time. This means that if you wanted that data you would have to get the XFDF data as I specified above. Note that currently WebViewer will display all replies as separate sticky notes, however we are hoping to add support for IRT soon.
For future reference, any questions related to WebViewer should be posted in the WebViewer forum here: https://groups.google.com/forum/#!forum/pdfnet-webviewer
PDFTron Systems Inc.