I want to reference / edit embedded go-to action.
Hello
I am creating an application in C ++ using Acrobat SDK.
In Japan, we developed d-LinkMaker (www.d-sols.com). However, there are still incomplete places.
I want to reference / edit embedded go-to action.
Please tell me how to read the file name of embedded document.
if (PDActionGetSubtype(pdAction) == ASAtomFromString( "GoToE" )){
ASInt32 destPage;
ASAtom fitType;
ASFixedRect destRect;
ASFixed zoom;
PDViewDestination pdViewDest = PDActionGetDest(pdAction);
if (PDViewDestIsValid(pdViewDest)) {
PDViewDestGetAttr(pdViewDest, &destPage, &fitType, &destRect, &zoom);
} else {
*
*
*
}
//********************************************************
PDFileSpec filespec = PDActionGetFileSpec(pdAction); // No good
CosObj coAction = PDActionGetCosObj(pdAction);
CosObj coFIL = CosDictGet(coAction, ASAtomFromString( "N" )); // No good
//*******************************************************************************
}
1 0 obj% Link to a child
<< /Type /Action
/S /GoToE
/D (Chapter 1)
/T << /R /C
/N (Embedded document) >>
>>
endobj
2 0 obj% Link to the parent
<< /Type /Action
/S /GoToE
/D (Chapter 1)
/T << /R /P >>
>>
endobj
3 0 obj% Link to a sibling
<< /Type /Action
/S /GoToE
/D (Chapter 1)
/T << /R /P
/T << /R /C
/N (Another embedded document) >>
>>
>>
endobj
