Adobe 38043740 - ColdFusion Standard - Mac Development Manual page 1018

Developing applications
Hide thumbs Also See for 38043740 - ColdFusion Standard - Mac:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Working with Documents, Charts, and Reports
Security option
Description
Encryption
Use the
128-bit
40-bit
none
User password
Use the
Owner password
Use the
the document.
Additionally, the
cfdocument
attribute. Specify one or more of the following values; separate multiple permissions with a comma:
Permission
Description
Printing
Specify the
Modification
Specify the
required software.
Copy
Specify the
Annotation
Specify
they must save the PDF after making changes.
Screen readers
Specify
Fill in
Specify
Assembly
Specify
rotate pages.
Degraded printing
Specify
bitmap, so printing can be slower.
Note: The defaults for these options vary, based on encryption level. These options apply to PDF only. For more
information, see the cfdocument discussion in the CFML Reference.
The following example creates a PDF document that allows copying only:
<cfdocument format="PDF" encryption="40-bit"
ownerpassword="us3rpa$$w0rd" userpassword="us3rpa$$w0rd"
permissions="AllowCopy" >
<h1>Employee List</h1>
<cfquery name="EmpList" datasource="cfdocexamples">
SELECT FirstName, LastName, Salary
FROM Employee
</cfquery>
<cfoutput query="EmpList">
#EmpList.FirstName#, #EmpList.LastName#, #LSCurrencyFormat(EmpList.Salary)#<br>
</cfoutput>
</cfdocument>
Saving printable reports in files
You can use the
cfdocument filename
example shows:
attribute to specify whether PDF output is encrypted. Specify one of the following:
encryption
userpassword
attribute to specify a password that users must enter to view the document.
attribute to specify a password that users must enter to view and optionally modify
ownerpassword
tag supports the following Acrobat security permissions through the
AllowPrinting
attribute to enable viewers to print the document.
attribute to let viewers modify the document, assuming they have the
AllowModifyContents
AllowCopy
attribute to let viewers select and copy text from the document.
AllowModifyAnnotations
to let viewers add comments to the document. If users add annotations,
to enable access to the document through a screen reader.
AllowScreenReaders
AllowFillIn
to enable users to use form fields.
to enable users to create bookmarks and thumbnails, as well as insert, delete, and
AllowAssembly
AllowDegradedPrinting
to enable lower-resolution printing. This format prints each page as a
attribute to save the generated PDF or SWF content to a file, as the following
Last updated 1/20/2012
1013
permissions

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 9

Table of Contents