Copy link to clipboard
Copied
I have an existing pdf that I did not create.
The pdf has 2 form fields
"myname" and "yourname".
I need to capture "myname" and "yourname" in a form and then output those values to the existing pdf and then output the pdf.
Is there a way to write those variables to the pdf and then output the pdf.
Step 1
Form page
User enters "myname" and "yourname" and clicks submit
Step 2
User clicks link to get the pdf that will contain "myname" and "yourname"in the appropriate places.
I can use <cfpdf action="merge" to get the pdf to output, but I cannot get my form variables to output.
They just show up blank.
When I try to use this code below to populate the PDF. I get an error
<cfpdfform action="populate" source="C:\websites\...............">
<cfpdfsubform name="form1">
<cfpdfformparam name="myname" value="Boris">
<cfpdfformparam name="yourname" value="Pasternak">
</cfpdfsubform>
</cfpdfform>
This error:
The requested template has been denied access to /C:/ColdFusion8/runtime/../lib/cf-acrobat.jar.
The following is the internal exception message: access denied (java.io.FilePermission /C:/ColdFusion8/runtime/../lib/cf-acrobat.jar read)
Any ideas?
Copy link to clipboard
Copied
This may seem totally obvious, but have you made sure that the user account that coldfusion is running on has privledges on the server to actually access that resource? [Edit: by totally obvious I meant that you most likely already tried this and this question is probably moot]
The "java.io.FilePermission" error message seems to indicate that there is either a problem with user account permissions on your server.
Message was edited by: insuractive