Highlighted

PDF Generation for Coldfusion 11

New Here ,
May 13, 2015

Copy link to clipboard

Copied

We just recently installed Coldfusion 11 enterprise. The code for generating pdf files worked before but did not work on the Coldfusion 11 enterprise platform. The code is like this:


<cfcontent type="application/pdf" />

<cfheader name="Content-disposition" value="attachment;filename=Report.pdf">

        <cfdocument format="pdf">

             <cfdocumentsection>

                  <cfinclude template="facultyReports.cfm">

             </cfdocumentsection>

        </cfdocument>


I got the following error:


coldfusion.document.DocumentProcessor$TimeOutException at coldfusion.document.DocumentProcessor.processContent(DocumentProcessor.java:277)


I also tried to use the new tag <cfhtmltopdf>, like this:


<cfhtmltopdf>

     This is a test.

</cfhtmltopdf>

The server/page was just hanging there.

Any insights are greatly appreciated.


Thanks.


Peggy

Views

999

Likes

Translate

Translate

Report

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

PDF Generation for Coldfusion 11

New Here ,
May 13, 2015

Copy link to clipboard

Copied

We just recently installed Coldfusion 11 enterprise. The code for generating pdf files worked before but did not work on the Coldfusion 11 enterprise platform. The code is like this:


<cfcontent type="application/pdf" />

<cfheader name="Content-disposition" value="attachment;filename=Report.pdf">

        <cfdocument format="pdf">

             <cfdocumentsection>

                  <cfinclude template="facultyReports.cfm">

             </cfdocumentsection>

        </cfdocument>


I got the following error:


coldfusion.document.DocumentProcessor$TimeOutException at coldfusion.document.DocumentProcessor.processContent(DocumentProcessor.java:277)


I also tried to use the new tag <cfhtmltopdf>, like this:


<cfhtmltopdf>

     This is a test.

</cfhtmltopdf>

The server/page was just hanging there.

Any insights are greatly appreciated.


Thanks.


Peggy

Views

1.0K

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
May 13, 2015 0
Adobe Community Professional ,
May 17, 2015

Copy link to clipboard

Copied

There might be a problem during the inclusion of facultyReports.cfm, as the error message indicates. As a test, store the following file, containing one line of text, in the current directory

pdfIncludeTest.cfm

Content of test file

Then replace <cfinclude template="facultyReports.cfm">  with <cfinclude template="pdfIncludeTest.cfm">

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 17, 2015 0
ebrewer LATEST
New Here ,
Apr 25, 2017

Copy link to clipboard

Copied

Did you every find anything? I have a brand new CF11 install, fully patched and out of the box i can't generate PDFS using simple test case:

<cfdocument format="PDF">this is a test</cfdocument>

It just hangs until timeout, nothing in any logs.

Also (i think its related) i can't add fonts through the CF Administrator, just hangs as well.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Apr 25, 2017 0