I'm trying to get rect for newly created Annotation.
PDFAnnot *annotation = [currentPage annotAtIndex:0]; // We are having annotation here
PDF_RECT rect;
rect.left = 0.f;
rect.right = 0.f;
rect.top = 0.f;
rect.bottom = 0.f;
[annotation getRect:&rect];
I'm getting EXC_BAD_ACCESS
In the method
-(void)getRect:(PDF_RECT *)rect
{
Page_getAnnotRect( m_page, m_handle, rect );
}
same happens for setRect:(PDF_RECT *)rect
What am I doing wrong ?