Yes i read
AVDoc current2 = AVAppGetActiveDoc();
PDDoc myPDDoc = AVDocGetPDDoc(current2);
PDPage pdPage;
for(all page loop)
for(
//retrieving all the annotoation)
{
//getting rectangle co ordinate from annotation
//cropping the current pdf
PDPageSetCropBox(pdPage, thisASFixedRect);
//creating another pdf
PDDoc pdDoc = PDDocCreate();
PDPage pdPaged= PDDocAcquirePage(myPDDoc, i);
PDPageSetPDEContent(pdPaged, gExtensionID);
PDPageNotifyContentsDidChange (pdPaged);
PDPageReleasePDEContent(pdPaged, gExtensionID);
PDPageRelease (pdPaged);
;
PDDocSave(pdDoc, PDSaveFull | PDSaveCollectGarbage,ASPathFromPlatformPath (strcat(toremovetext,"\\coordi.pdf")), NULL, NULL, NULL);
}
}
Where i went wrong?