Get "NM" and "IRT" from annotations

Skip to first unread message

Matt Parizeau

Nov 4, 2013, 4:23:04 PM11/4/13

I have a question about the object model of annotations in the WebViewer API. Is there a way to get the "NM" and "IRT" values to identify the annotation object in the viewer?


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.
Reply all
Reply to author
0 new messages