How do I create a Dynamic PDF in ColdFusion
I am using ColdFusion CS4 and I need to create a dynamic PDF certificate for the user when they finish a short test.
Their name is in a session var and should dynamically enter in to the Name field of the certificate as well as the date.
The user can print The PDF certificate, which must be protected to Allow Print only.
I have a PDF created in Adobe Lifecycle Designer. This contains all the data and a text field Name and Data that needs the dynamic input from ColdFusion.
<cfpdfform action="populate" source="certificate.pdf">
<cfpdfsubform name="form1">
<cfpdfsubform name="page1">
<cfpdfformparam name="employeeName" value="John Hollings" />
<cfpdfformparam name="date" value="#dateformat(now(), 'dd mmmm, yyyy')#" />
<cfpdfformparam name="submitURL" value="#CGI.SCRIPT_NAME#" />
</cfpdfsubform>
</cfpdfsubform>
</cfpdfform>
Thsi work but the PDF textFields are open to edit, I need to lock down the PDF so only printing can operate...
No Copy of data
No Saving the file (if possible)
Only print and close
