Groups
Groups
Sign in
Groups
Groups
PDFTron WebViewer
Conversations
Labels
About
Send feedback
Help
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 PM
4/15/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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