Skip to main content
Inspiring
December 3, 2010
Question

cfdocument with cfpdfform - odd behavior

  • December 3, 2010
  • 1 reply
  • 1288 views

I'm trying to create a pdf that display some content from HTML and then includes a pdf form file, and I am experiencing two odd things:

1. The content in the cfdocumentsection above the cfpdfform tag does not show up in the pdf. All I see is the pdf form.

2. If I try to save the cfdocument using the filename attribute, it doesn't work. The file is not created and the pdf form displays in the browser. If I remove the cfpdfform tag, then the file is created and I see the content from the cfdocumentsection in the result.

Anyone have any ideas what is going wrong? The code looks like this:

<cfdocument format="pdf">
    <cfdocumentsection>
    <H2>PDF Form</H2>
    </cfdocumentsection>
    <cfpdfform action="populate" source="#request.path.file_directory##attributes.fileid#.pdf" xmldata="#setInputXMLRet.result#" overwritedata="true">
    </cfpdfform>
</cfdocument>

Thanks.

This topic has been closed for replies.

1 reply

Participant
November 16, 2011

Did you ever resolve this?

Sorry for ressurecting an old thread, but I'm having *exactly* the same issue.

SteveTXAuthor
Inspiring
November 16, 2011

Nope I never did.

Inspiring
November 16, 2011

It works for me with CF9.0.1.

Which version are you using? Does the cfpdfform action work independently? Did you check the log files for errors?

 

-Leigh