How can I find the PDF coordinates of an annoation in WebViewer?

57 views
Skip to first unread message

Aaron

unread,
Apr 15, 2015, 8:12:04 PM4/15/15
to pdfnet-w...@googlegroups.com
Q:

I want to find the coordinates, in PDF space, of an annotation in WebViewer.  Is that possible?

A:

You should be able to get the XOD page coordinates of an annotation by using Annotation.GetX() and Annotation.GetY():
https://www.pdftron.com/webviewer/demo/lib/html5/doc/symbols/Annotations.Annotation.html#GetX

To convert these XOD coordinates to PDF page coordinates, use Document.GetPDFCoordinates:
https://www.pdftron.com/webviewer/demo/lib/html5/doc/symbols/CoreControls.Document.html#GetPDFCoordinates


Reply all
Reply to author
Forward
0 new messages