Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

acrobat plugin migration SDK 10

New Here ,
Nov 23, 2016 Nov 23, 2016

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

TOPICS
Acrobat SDK and JavaScript
642
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Nov 29, 2016 Nov 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.

Translate
LEGEND ,
Nov 23, 2016 Nov 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 25, 2016 Nov 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 29, 2016 Nov 29, 2016

It is available in Adobe Acrobat:

AV_Layer.AVPageView (Acrobat)

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 29, 2016 Nov 29, 2016
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines