Copy link to clipboard
Copied
Hi,
I'm migrating an old plugin from SDK 6 to SDK 10. migration went smooth for most of the API call. here I'm stuck with call AVPageViewToViewDest which is not compiling. code points it back to AVCalls.h header file but it doesn't seem to compile at all. in this part of code I'm updating a bookmark destination. documentation says this call is supported since API level 2. may be this is not available for the acrobat reader anymore. if that is the case what other alternative is available to get job done.
I have this in my preprocess
ACRO_SDK_LEVEL=0x000A0000
READER_PLUGIN
Didn't seem to be in Reader. I don't think Adobe want this sort of thing to work in Reader, all APIs that create PDViewDestination are gone.
Copy link to clipboard
Copied
What is the call? Please also include the declarations of any variables used. And what is the exact error - please copy/paste, don't summarize.
Copy link to clipboard
Copied
it says "error C2065: 'AVPageViewToViewDestSELPROTO' : undeclared identifier" I'm using AVPageViewToViewDest call to get view destination. here is my code
avDoc = AVAppGetActiveDoc();
pdDoc = AVDocGetPDDoc(avDoc);
AVPageView pageView = AVDocGetPageView(avDoc);
ASAtom initialFitType = ASAtomFromString("XYZ");
PDViewDestination viewDest = AVPageViewToViewDest(pageView, initialFitType, pdDoc);
last line is not compiling however it is working fine with older SDK.
Copy link to clipboard
Copied
It is available in Adobe Acrobat:
Copy link to clipboard
Copied
Didn't seem to be in Reader. I don't think Adobe want this sort of thing to work in Reader, all APIs that create PDViewDestination are gone.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now