How to create password protected PDF documents in coldfusion
For creating password protected PDF documents, we can use the tag <cfdocument> with attributes userpassword,encryption .
For example, the below code will create a PDF document which is protected by a password 'password'.
<cfdocument format="PDF" userpassword="password" encryption="128-bit">
<cfdocumentsection>
This document is password protected
</cfdocumentsection>
</cfdocument>
For example, the below code will create a PDF document which is protected by a password 'password'.
<cfdocument format="PDF" userpassword="password" encryption="128-bit">
<cfdocumentsection>
This document is password protected
</cfdocumentsection>
</cfdocument>
Comments
Post a Comment