The cfdocument
tag supports the Acrobat security options, as the following table shows:
Security option | Description |
---|---|
Encryption |
Use the
|
User password |
Use the |
Owner password |
Use the |
Additionally, the cfdocument tag supports the following Acrobat security permissions through the permissions
attribute. Specify one or more of the following values; separate multiple permissions with a comma:
Permission | Description |
---|---|
Printing |
Specify the |
Modification |
Specify the |
Copy |
Specify the |
Annotation |
Specify |
Screen readers |
Specify |
Fill in |
Specify |
Assembly |
Specify |
Degraded printing |
Specify |
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 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>