Javascript to determine Reader Extensions | Community
Skip to main content
August 23, 2021
Solved

Javascript to determine Reader Extensions

  • August 23, 2021
  • 2 replies
  • 757 views

Hi,

I´m currently designing some dynamic forms in Designer, where later on different Reader Extensions will be assigned to via ARES server.

Is there any way in Javascript within the PDF to determine which Extensions/Rights have been assigned or to list the extensions?
regards

Al

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by radzmar

In Acrobat you can read out the Reader Extension information via JavaScript as follows:

this.appRightsValidate({}, 2, false)

It returns an SigInfo object you can get many details from such as:

this.appRightsValidate({}, 2, false).appRightsDocument; // FullSave
this.appRightsValidate({}, 2, false).appRightsForm; // FillIn,SubmitStandalone,Add,Delete
this.appRightsValidate({}, 2, false).appRightsSignature; // Modify

 

To check if there are any Reader Extensions applied to a PDF:

this.appRightsValidate({}, 1, false); // true or false

 

2 replies

Level 8
August 23, 2021

I don’t think so it’s possible using JavaScript 

radzmar
radzmarAccepted solution
Level 10
August 25, 2021

In Acrobat you can read out the Reader Extension information via JavaScript as follows:

this.appRightsValidate({}, 2, false)

It returns an SigInfo object you can get many details from such as:

this.appRightsValidate({}, 2, false).appRightsDocument; // FullSave
this.appRightsValidate({}, 2, false).appRightsForm; // FillIn,SubmitStandalone,Add,Delete
this.appRightsValidate({}, 2, false).appRightsSignature; // Modify

 

To check if there are any Reader Extensions applied to a PDF:

this.appRightsValidate({}, 1, false); // true or false