Security
Adding Security to PDF Documents
12
Encrypting PDF Files Using Security Policies
It is possible to define a security policy for a PDF document. The policy can contain a list of
people who can open the document, restrictions limiting their ability to modify, print, or
copy the document, and an expiration date for the document after which it cannot be
opened.
There are two kinds of security policies: a custom policy is one created by a user and is
stored on a local computer, and a corporate policy is developed by an organization and
stored on a policy server such as LiveCycle
ΤΜ
Policy Server
®
).
There are three types of custom policies. You may create policies for password security,
certificate security, and policies used on LiveCycle Policy Server.
Acrobat JavaScript defines a
securityPolicy
object that contains the following
properties:
●
●
●
●
id
: a machine-readable policy id string
name
: the policy name
description
: the policy description
lastModified
: the date when the policy was last modified
●
handler
: the handler that implements the policy (
Adobe.APS
,
Adobe.PubSec
, and
Adobe.Standard
)
●
target
: the target data covered by the policy (
document
or
attachments
)
To obtain a list of the security policies currently available, invoke the
security
object’s
getSecurityPolicies
method, which accepts two parameters:
●
oOptions
: a
securityPolicyOptions
object containing parameters used to filter
the list
bUI
: determines whether the user interface will be displayed (affects
bCheckOnline
in the
oOptions
parameter)
The
securityPolicyOptions
object is a generic object used to filter the list of security
●
policies that will be returned by the method, and contains the following properties:
●
●
●
bCheckOnline
: determines whether to check online for updated security policies
bFavorites
: determines whether to return policies which are favorites
cFilter
: returns policies using the specified
PDCrypt
filter (
Adobe.APS
,
Adobe.PubSec
, and
Adobe.Standard
)
cTarget
: returns policies using the specified
target
(
document
or
attachments
)
●
Acrobat JavaScript Scripting Guide
213