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

NotAllowedError for setPageRotations

Guest
Jan 14, 2020 Jan 14, 2020

Copy link to clipboard

Copied

Hello,

 

this.setPageRotations(0, 0, 90); doesn't want to execute because of security settings in Adobe Acrobat Reader DC. Same code works in Adobe Acrobat Pro DC.

Enable global object security policy is off and Enable enhanced security.

TOPICS
Acrobat SDK and JavaScript

Views

350

Translate

Translate

Report

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 ,
Jan 14, 2020 Jan 14, 2020

Copy link to clipboard

Copied

This method is not allowed in Acrobat Reader.

Votes

Translate

Translate

Report

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
Guest
Jan 14, 2020 Jan 14, 2020

Copy link to clipboard

Copied

Okay, that makes sense.

Is there any way then to check when person rotates document?

Votes

Translate

Translate

Report

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 ,
Jan 14, 2020 Jan 14, 2020

Copy link to clipboard

Copied

If they are using Reader, they can't rotate the document, so it doesn't apply. (They can rotate the view).

Votes

Translate

Translate

Report

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
Guest
Jan 14, 2020 Jan 14, 2020

Copy link to clipboard

Copied

I have wrongly formatted my question.

So , how to check if user rotates view ?

Is there any event that occurs when view rotation is changed ?

Votes

Translate

Translate

Report

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 ,
Jan 14, 2020 Jan 14, 2020

Copy link to clipboard

Copied

> Is there any event that occurs when view rotation is changed ?

No.

Votes

Translate

Translate

Report

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 ,
Jan 14, 2020 Jan 14, 2020

Copy link to clipboard

Copied

Look for the property viewState in the Acrobat Javascript Reference.

Votes

Translate

Translate

Report

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
Guest
Jan 14, 2020 Jan 14, 2020

Copy link to clipboard

Copied

LATEST

Property viewState does not have method for rotation.

Workaround is using app.setInterval to check rotation since this.getPageRotation is allowed, not best solution but works.

Votes

Translate

Translate

Report

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