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.
Copy link to clipboard
Copied
This method is not allowed in Acrobat Reader.
Copy link to clipboard
Copied
Okay, that makes sense.
Is there any way then to check when person rotates document?
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).
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 ?
Copy link to clipboard
Copied
> Is there any event that occurs when view rotation is changed ?
No.
Copy link to clipboard
Copied
Look for the property viewState in the Acrobat Javascript Reference.
Copy link to clipboard
Copied
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.