Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

CFPDF populate existing PDF

Participant ,
Aug 22, 2011 Aug 22, 2011

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?

850
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Aug 26, 2011 Aug 26, 2011
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources