You can use the ODS
PRINTER statement or the ODS PDF statement to generate PDF output.
By default, PDF files are not password protected, so any user can
view and edit the PDF files without restrictions. However, you can
use SAS system options to restrict or allow users' ability to access,
assemble, copy, or modify the ODS PDF files. Other SAS system options
control whether the user can fill in forms and set the print resolution.
Setting the security
of a PDF file involves setting an encryption level and setting PDF
document properties. You use the following SAS system options to
secure and configure document properties for PDF files:
PDF System Options and Associated PDF Document Properties
|
|
|
Specifies whether text
and graphics from PDF documents can be read by screen readers for
the visually impaired
|
PDFACCESS |
Content
Accessibility Enabled
|
Specifies whether PDF
documents can be assembled
|
PDFASSEMBLY |
|
Specifies whether PDF
document comments can be modified
|
PDFCOMMENT |
|
Specifies
whether the contents of a PDF document can be changed
|
PDFCONTENT |
|
Specifies whether text
and graphics from a PDF document can be copied
|
PDFCOPY |
|
Specifies whether PDF
forms can be filled in
|
PDFFILLIN |
Form Field
Fill-in or Signing
|
Specifies the password
to use to open a PDF document and the password used by a PDF document
owner
|
PDFPASSWORD= |
|
Specifies the resolution
used to print the PDF document
|
PDFPRINT= |
|
Specifies the level
of encryption for PDF documents
|
PDFSECURITY= |
|
Note: The
SAS/SECURE SSL software
that is used to encrypt PDF files is included in the SAS installation
software only for countries that allow the importation of encryption
software.
You secure a PDF file
by setting the PDFSECURITY= system option to an encryption level.
Valid security levels for the PDFSECURITY= option are NONE, LOW, or
HIGH. SAS sets the default PDF document properties based on the encryption
level.
PDFSECURITY=NONE sets
no encryption level or document property restrictions for the document.
All of the PDF document properties are set to Allowed. Setting other
PDF system options has no effect on PDF document properties when PDFSECURITY=NONE.
PDFSECURITY=LOW sets
the encryption level to 40-bit RC4.
PDFSECURITY=HIGH sets
the encryption level to 128-bit RC4.
When the PDFSECURITY=
option is set to LOW or HIGH, you must specify one or more document
passwords using the PDFPASSWORD= option. Passwords are required to
open a secure document. An optional permissions password can be required
to validate the document owner. Use the OPEN= "
pw"
argument to specify a password to open a document. Use the OWNER="
pw"
argument to specify a permissions password for the document owner.
To view the document
properties for a PDF file, open the PDF file, right-click in the document,
select
Document Properties from the menu,
and click
Show Details. The
Document
Security window appears with the document property values.
Note: The
Security tab
in the
Document Properties window displays
the security settings. When PDFSECURITY=NONE, the
Show
Details button is inactive and the
Document
Restrictions Summary section displays the document property
value of Allowed for all properties. If PDFSECURITY= is set to LOW
or HIGH, ignore the
Document Restrictions Summary section.
The PDF document properties are displayed properly only from the
Document
Security window, which you access with the
Show
Details button..
The Yes and No values
for the Document Open Password and the Permissions Password document
properties indicate whether password security has been set for a document.
These values are determined by the values of the PDFSECURITY= option
and the PDFPASSWORD= option as shown in this table:
Nearly all other document
properties can be set to Allowed or Not Allowed by using other PDF
system options. The Page Extraction property cannot be set by using
a system option. To see how the individual options set the document
properties, see the documentation for the PDF system options in
SAS System Options: Reference.
To see how the Page Extraction property is set, see Page Extraction Property Values by System Option.
The following table
shows the default PDF document properties for the three values of
the PDFSECURITY= option:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Form Field Fill-in or
Signing
|
|
|
|
|
|
|
|
|
|
|
|
Content Accessibility
Enabled
|
|
|
|
|
|
|
Not Allowed when only
PDFPASSWORD=(OWNER=" pw") is
specified
|
|
|
|
|
1Documents that are created
when PDFSECURITY=LOW can be viewed using Acrobat 3.0 and later.
|
2Documents that are created
when PDFSECURITY=HIGH can be viewed using Acrobat 5.0 and later.
|
3SAS does not set the Page
Extraction document property when PDFSECURITY=LOW. When you use PDFSECURITY=LOW,
the Page Extraction value in the Document Security window
is the last value that was set for the property when PDFSECURITY=HIGH.
|
Some document properties
are set by SAS system options only when PDFSECURITY=HIGH. When you
use the PDFCONTENT, PDFCOPY, PDFFILLIN, or the PDFPRINT= system options
and PDFSECURITY=LOW, the resulting document properties might not be
what you thought you set. For example, if PDFSECURITY=LOW and you
set NOPDFCOPY, you might expect the Content Copying document property
to be set to Not Allowed. The
Document Security window
displays the value Allowed because this was the value for the property
when NOPDFCOPY was set.
The Page Extraction
document property is set for different values of the PDF options,
and only when PDFSECURITY=HIGH. The following table shows the Page
Extraction document property values for the different PDF options
and whether the document is opened by a user or by the owner:
Page Extraction Property Values by System Option
|
Page Extraction when
PDFSECURITY=HIGH
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|