How do I return the Author, Date of an annotation.
I see this structure PDAnnotInfoRec and it has the author, date as members but how do I fill the structure with data in order to return the members.
It also looks like I need to use: PDAnnotHandlerGetAnnotInfoProc but what do I return? and how do I call or use this callback. At the same time it says I need to use the AVAnnotGetInfo, and AVAnnotDeleteInfo...what do I have to return or do in those callbacks?
Correct me where I am wrong:
PDAnnotHandlerRec annotHanderRec;
ASAtom atom;
atom = PDAnnotGetSubtype(annot);
PDAnnotHandler annotHandler;
annotHandler = PDGetAnnotHandlerByName(atom); //is that correct? Is the subtype the same as Name? If not...how do I set atom? Using what method?
PDAnnotInfo annotInfo = annotHanderRec.GetAnnotInfo(annotHandler, annot, page); //Goes to the callback
//Callback
static ACCB1 PDAnnotInfo ACCB2 PDAnnotGetInfoTest(PDAnnotHandler annotHandler, PDAnnot annot, PDPage pdpage){
PDAnnotInfoRec info;
info.size = sizeof(PDAnnotInfoRec);
//Now How do I return the information of the info? in order to get the Author, Date etc?
//If I try this
AVAlertNot((char *) info.cAuthor); //I get a bad pointer when I debug it.
return info;
}
North America
Europe, Middle East and Africa
Asia Pacific