I am using your code from your give step but this gives me wrong cordinate like this.
PDFVPage *pg =[[PDFVPage alloc] init:m_doc :2];
PDF_RECT rect;
float m_scale = [[UIScreen mainScreen] scale];
[annot getRect:&rect];
rect.left = [pg GetX] - m_view.contentOffset.x * m_scale + [pg ToDIBX:rect.left];
rect.right = [pg GetX] - m_view.contentOffset.x * m_scale + [pg ToDIBX:rect.right];
float tmp = rect.top;
rect.top = [pg GetY] - m_view.contentOffset.y * m_scale + [pg ToDIBY:rect.bottom];
rect.bottom = [pg GetY] - m_view.contentOffset.y * m_scale + [pg ToDIBY:tmp];
-2
906
-2
906
if am i doing wrong please suggest me.i want to know annotation frame area. actually i want to capture frame (annotation area) so i will convert into image. please help on this asap.
i have print rect this gives me
m_annot_rect = {
left = 103.89996
top = 124.48999
right = 402.49994
bottom = 267.70996
}
please look mahesh (ink annotation) area. this does not match with area