I tried to add an annotation to the page in pdf. it works. but not in the desired position. here is the way I added annotation.
let annotaionpos = CGRect(origin: points, size: CGSize(width: 80, height: 30))
let annotation = PDFAnnotation(bounds: annotaionpos, forType: .text, withProperties: nil)
annotation.backgroundColor = .purple
pdfView.currentPage?.addAnnotation(annotation)
in above code, the x position
is correct and the y position
seems like opposite value. ex: if x = 100 and y = 10
then it added to the correct x position and y position stars from the bottom of the page. why is this. hope your help with this.