Skip to main content
Participant
June 8, 2010
Answered

create a dynamic pdf with unsavable fields

  • June 8, 2010
  • 1 reply
  • 1453 views

Hi, I have dynamically generated a pdf with information custom fields. however i do not want users to be able be able to save or edit the info in the pdf's fields. anyone know if this can be done?

thanks in advance

This topic has been closed for replies.
Correct answer

after you created the pdf with cfpdf you set permissions for the document with the permissions attribute and apply them by setting the action attribute to "protect":

<cfpdf  permissions="None" action="protect" source="cfpdf_name" >

1 reply

tclaremont
Inspiring
June 9, 2010

I have not played with CFPDF in quite a while, but I believe you can set an attribute so that the document is read only. Would that solve your issue?

austenjoeAuthor
Participant
June 9, 2010

Thanks for the replyI think this would work, but I can't find the attribute that allows the pdf to display as read only.

alternatively, I was thinking I was thinking if there was any way to make it so that cfpdf displays the a passworded pdf (without having the user enter the pw). however when if the user tries to save the file it will remain passworded.

Correct answer
June 10, 2010

after you created the pdf with cfpdf you set permissions for the document with the permissions attribute and apply them by setting the action attribute to "protect":

<cfpdf  permissions="None" action="protect" source="cfpdf_name" >