How do I get coordinates on Annotations from pdf for iOS?
I am using this PDFTron SDK in the ios app.
I am adding some Annotations like some text and signature.
Once I add annotation, I need the coordinates of the annotations which I added on the pdf. How I can get the co-ordinates?
I am using Swift Language for iOS Development.
Thank you for getting in touch with us about this.
Are you able to share some more information about how you’re opening and displaying PDFs in your app?
You could then get the annotation’s rect in PDF page co-ordinates using the getRect API call, or to get the annot’s rect in screen co-ordinates you could use the PTPDFViewCtrl method, getScreenRect(for annot: page_num:). The PTDocumentController.
An overview of the different co-ordinate systems is available here.