Skip to main content
Inspiring
June 13, 2009
Question

Cfdocument hang/timeout error

  • June 13, 2009
  • 2 replies
  • 3342 views

I use the same cfdocument call on two development and one production server:

<cfsetting showdebugoutput="false" />

<cfcontent TYPE="application/pdf" reset="yes"/>
<cfheader name="content-disposition" value="attachment;filename=Details.pdf"/>

<cfdocument format="PDF" mimetype="application/pdf" backgroundvisible="yes" overwrite="yes" fontembed="no" bookmark="true" localurl="no" >

<style type="text/css" media="screen">
@1552174 "style1.css";
</style>
     -- content ---

</cfdocument>

Now this code runs perfectly on my local computer, it does not run in my development environment on remote computer, it DOES run on my multi-homed, remote production server in the inetpub/wwwroot directory but it produces a 30 second timeout error on the same production server in the inetpub/mysite directory (all other cf code runs fine.)

The the content is the same, directory structures are the same, the template names are all the same (except for the server name) the disk names are the same, the CF Administrator setup is basically the same and the code is the same in all environments.

Any idea where to look to find out why it works in one environment and not in another?

Thanks a bunch!!!

KD

    This topic has been closed for replies.

    2 replies

    Priyank Shrivastava.
    Inspiring
    July 1, 2014

    Hi KD,

    Can you please set the timeout at the top of the page and then try it.

    <cfsetting RequestTimeout ="60000">

    Thanks,

    Priyank

    Thanks, Priyank Shrivastava
    Participant
    June 30, 2014

    I'm having the same problem with Coldfusion 11 - windows server 2008 std system. Trying simple <cfdocument format="PDF">xyz</cfdocument> getting:

    The content of this document process takes more than 60000 milliseconds to process.

    I looked through the CF Admin for setup and found:

    ColdFusion lets you register multiple PDF Service Managers. These PDF Service Managers will handle PDF conversion requests for CFHtmlToPdf Tag.

    Add / Edit PDF Service Manager
    Unique name for PDF Service Manager.
    The host name for PDF Service Manager.
    The port for PDF Service Manager.
    The weight for PDF Service Manager.
    If PDF Service Manager is running on https.

    But do not know the values for the Host Name or Port.  Anybody have ideas?

    Inspiring
    June 30, 2014

    PDF service manager is for cfhtmltopdf tag only, and cfdocument doesnt use it.  PDF manager only works on Windows ONLY and there seems to be zero documentation on how to set up a remote PDF Service Manager.  Basically your on your own.  I had trouble with this and got zero response. 

    https://mail.google.com/_/scs/mail-static/_/js/k=gmail.main.en.Mi10Ej2BoUQ.O/m=m_i,t/am=_Iw4jPx7f6EY8130SbX__vfukuInfw_3R5oAhLATKP-b_T-A-4E-GD8W/rt=h/d=1/rs=AItRSTMsKXqJYEZ8vHmY9-6TWBWkiX3XxQRe: cfhtmltopdf work on linux?

    Priyank Shrivastava.
    Inspiring
    July 1, 2014

    Hi Karl,

    As of now PDFG Add on service is unavailable for Linux environment but you can remotely install it and register it. Here are the steps to do it.

    1. When installing PDF Add service, there is a screen comes where it is asking you to Access Add on service remotely, add the IP address of the server where you're installing it.

    2. Finish the installation and make sure it's service should be running.

    3. Launch the ColdFusion Admin where you wanted to add the Add service and use these details.

    4. Once you add the service, start it using the start button.

    In case you're not sure about the port please go to this location where you have installed the Add on service "C:\ColdFusionAdd-onServices\etc\" and open the "jetty.xml" look for this.

    After following all the steps it looks like this.

    Hope this helps.

    Thanks,

    Priyank

    Thanks, Priyank Shrivastava