13
Rights-Enabled PDF Files
Writing Acrobat JavaScript for Reader
In Acrobat Standard and Professional, the following controls will be disabled for rights-
enabled documents:
●
Menu items under
Advanced > JavaScript
that allow the addition or modification of
JavaScripts (except for the
Debugger).
Menu items under
Advanced > Forms
that allow the creation, modification, or deletion
of form fields (except the
Import
and
Export
menu items).
Certain operations within
Document Properties > Security Panel
will be marked as
Not Allowed.
●
●
In addition, since the following menu operations will be affected in Acrobat Standard and
Professional, so will their corresponding JavaScript methods, indicated below in
Table 13.2:
T
ABLE
13.2
Controls Affected by Livecycle Reader Extensions in Acrobat Standard and
Professional
Menu Operation
File > Reduce File Size
Document > Pages > Insert
Document > Pages > Replace
Document > Pages > Delete
Document > Pages > Crop
Document > Pages > Rotate
Document > Pages > Set Page
Transitions
Document > Pages > Number
Pages
Document > Add Watermark &
Background
Edit > Add Bookmark
Equivalent JavaScript Method
app.execMenuItem
doc.insertPage
doc.replacePages
doc.deletePages
doc.setPageBoxes
doc.setPageRotations
app.defaultTransitions
(read-only),
doc.setPageTransitions
doc.setPageLabels
doc.addWatermarkFromText
,
doc.addWatermarkFromFile
bookmark.createChild
230
Acrobat JavaScript Scripting Guide