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>


Comments

Popular posts from this blog

how to add new line in google form questions | Fix for next line issue in google form questions

How to add new line in dropdown type question in google forms