Skip to main content
anerjan
Participant
November 23, 2016
Answered

acrobat plugin migration SDK 10

  • November 23, 2016
  • 3 replies
  • 713 views

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

This topic has been closed for replies.
Correct answer Test Screen Name

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.

3 replies

Test Screen NameCorrect answer
Legend
November 29, 2016

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.

Bernd Alheit
Community Expert
Community Expert
November 29, 2016

It is available in Adobe Acrobat:

AV_Layer.AVPageView (Acrobat)

Legend
November 23, 2016

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.

anerjan
anerjanAuthor
Participant
November 25, 2016

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.