Hmm, spending a couple of days trying to get the PDF annotations on my iPad application. I'm using the following code to get the annotations, and yes! it works :) But the rect value is completely different then the IOS rect values. I can't figure it out how to place UIButtons on the spot where the annotation supposed to be. For example, i have an annotation in the top left corner of the pdf file.
My /Annots/Rect values are, 1208.93, 2266.28, 1232.93, 2290.28 (WHAT?!)
How can i translate the PDF /Annots /Rect values to iOS x an y coordinates?
CGPDFPageRef page = CGPDFDocumentGetPage(doc, i+1);
CGPDFDictionaryRef pageDictionary = CGPDFPageGetDictionary(page);
CGPDFArrayRef outputArray;
if(!CGPDFDictionaryGetArray(pageDictionary, "Annots", &outputArray)) {
return;
.... .... ....}