Skip to main content
Participant
April 13, 2022
Question

SERVER ERROR with cfhtmltopdf tag

  • April 13, 2022
  • 2 replies
  • 730 views

We are facing issue when generating pdf in Coldfusion 2018. As per one relieble source we came to know this is existing bug in Coldfusion 2018. It will be really big help if some assist us in solution or is there any patch Adobe is relased then let us know. Below is error detail -

 

Regards

Nikhil 

--------------------------------------------------------

Detail: Reason: SERVER ERROR
Message: Error occurred while generating PDF.
StackTrace: coldfusion.document.webkit.PDFgErrorHandler$ServiceManagerConversionException: Error occurred while generating PDF.
at coldfusion.document.webkit.PDFgErrorHandler.handleConversionError(PDFgErrorHandler.java:190)
at coldfusion.document.webkit.HttpPDFRequestHandler.requestPDFGeneration(HttpPDFRequestHandler.java:178)
at coldfusion.tagext.lang.HtmlToPdfTag.processPDFgRequest(HtmlToPdfTag.java:1361)
at coldfusion.tagext.lang.HtmlToPdfTag.handlePDFgConversionRequest(HtmlToPdfTag.java:1511)
at coldfusion.tagext.lang.HtmlToPdfTag.convertToPDF(HtmlToPdfTag.java:1448)
at coldfusion.tagext.lang.HtmlToPdfTag.doEndTag(HtmlToPdfTag.java:1599)

    This topic has been closed for replies.

    2 replies

    BKBK
    Community Expert
    Community Expert
    April 13, 2022

    Do the following test, in strict order:

    1.  Restart the Add-On services (thereby automatically restarting the PDF service);
    2.  Restart ColdFusion;
    3.  Run the code to generate PDF.

     

    That suggestion comes from a previous discussion in this forum. Does it work for you too?

     

     

     

    Charlie Arehart
    Community Expert
    Community Expert
    April 13, 2022

    Nikhil, can you share first any more you have that connects this to being a bug? I ask because rhere can be many reasons you get such an error, which may not be "bugs".

     

    First, what update of cf2018 are you one? And how long have you been on it?

     

    And are you confirming that ANY use of cfhtmltopdf fails tobwork, even a simple 3 line example with static text? That can be valuable to know. 

     

    And in the cf admin, on the pdf service page, is it pointing to its pdf (add on) service as running on the localhost along with CF, or on another server? That's an option. 

     

    And we need to know because you'd want to check the logs for that pdf/addon service. The addon service could have been installed on its own and implemented in its own folder, like coldfusion2018addonservice, or it could have been installed along with CF, and so its folder would be  the cfusion/jetty folder. And the logs would be in either of those.

     

    Let us know what you may find. 

    /Charlie (troubleshooter, carehart. org)