Expand my Community achievements bar.

SOLVED

Javascript to determine Reader Extensions

Avatar

Level 1

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

 

1 Accepted Solution

Avatar

Correct answer by
Level 10

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

 

View solution in original post

2 Replies

Avatar

Level 9

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

Avatar

Correct answer by
Level 10

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