|
||||||||||||||||||||||||||||||
TUTORIALSHow to use password securityAs easy as 1, 2, 3...
|
||||||||||||||||||||||||||||||
|
Attributes
|
Description
|
|
Assembly
|
The Assembly Permission includes:
|
|
Extraction
|
Controls the right to copy/extract text and graphics contents. NOTE: If the document is encrypted with a 40 bit key length or in a 1.3 PDF version compliant (Acrobat 3.0 or later), this attribute will overwrite the one controlled by "Extraction for Screen Readers". |
|
Extraction for Screen Readers
|
Controls the right to copy/extract text and graphics contents in support of accessibility to disabled users. NOTE: If the document is encrypted with a 40 bit key length or in a 1.3 PDF version compliant (Acrobat 3.0 or later), this attribute will be overwritten by the "Extraction" one. |
|
Fill Form Field
|
Controls the right to fill form fields (and sign signatures). NOTE: If the document is encrypted with a 40 bit key length or in a 1.3 PDF version compliant (acrobat 3.0 or later), this attribute will be overwritten by the "Modification of Annotation" one. |
|
Modification of Annotation
|
Controls the right to add/modify text annotations. NOTE: Allowing this permission along with the one controlled by the attribute "Modification" will allow the addition/modification of form fields. |
|
Modification
|
Controls the right to modify the document via operations other than those controlled by:
NOTE 2: If the document is encrypted with a 40 bit key length or in a 1.3 PDF version compliant (Acrobat 3.0 or later), this attribute will overwrite the one controlled by "Assembly". |
|
Printing
|
Controls the right to print the document or not. |
|
Printing Quality
|
This attribute controls the quality of the printout when printing permission is given. |
In the example below, we want to allow printing only in high quality.
The document will be ciphered using password security.
We will define two sets of users: normal users who do not need any
password to access the document ("") and authors (with the "admin"
password).
Since we are using Password Security, we need to use a PasswordCredentialsCreation to hold this information.

The code then looks like this:
The document will be ciphered using RC4-128 with password security. But we could use different parameters.
|
Encryption Type
|
Key length
|
Description
|
| ENCRYPTION_RC4 |
40
|
This is the legacy encryption which appeared in earlier versions of PDF. It is now considered weak and should be avoided in favor of AES. |
| ENCRYPTION_RC4 |
128
|
Ron's Code 4 (RC4) using a 128 bits key - provides decent encryption level. |
| ENCRYPTION_AES |
128
|
Advanced Encryption Standard (AES) is the best encryption level available for PDF at this time. It can only be read by client applications that support PDF 1.5 or better (jPDF Viewer or Acrobat 7). |
Now that the all settings are in place, we need only process the document. (Note that even if PDF supports incremental updates, it is not possible to have a document use different encryption types: the whole document must use the same settings. For this reason, when you change credentials or permissions, the whole file needs to be reprocessed.)
| © 2000-2007 Crionics Inc. |