Skip to main content
Participant
October 14, 2019
Question

"General Error" with cfhtmltopdf after patching ColdFusion Server Enterprise 2018

  • October 14, 2019
  • 1 reply
  • 276 views

Our application has been successfullying using cfhtmltopdf for months now.  Following a patch installation last week, we're seeing an error but there is precious little detail to go on.  Are you seeing similar?  

 

ColdFusion Server Enterprise 2018

Error occurred while generating PDF. Reason: GENERAL ERROR

 

<cfhtmltopdf
source = "#rootFilePath#\inventories\#variables.DecryptedinventoryID#\#variables.SourceFileName#"
destination = "#rootFilePath#\inventories\#variables.DecryptedinventoryID#\#variables.TargetFileName#"
saveAsName = "#variables.TargetFileName#">

#ReadHTML#


</cfhtmltopdf>

    This topic has been closed for replies.

    1 reply

    Charlie Arehart
    Community Expert
    Community Expert
    October 14, 2019

    Have you confirmed first there were 0 errors reported in the update's log? It's not obvious. For more, see:

     

    https://coldfusion.adobe.com/2019/03/problems-applying-cf-update-check-first/

    /Charlie (troubleshooter, carehart. org)
    Participant
    October 15, 2019
    Thanks for the tip Charlie. I've asked Henry to check on this but no response back just yet. Using cfdocument seems to be a good solution be it temporary or permanent.
    Charlie Arehart
    Community Expert
    Community Expert
    October 15, 2019
    OK, and you can/should also test whether CF can reach the add-on service (where CFHTMLTOPDF processing happens, but not with CFDocument). You can verify the connection in the CF Admin's "pdf service" page. If it can't reach it, then the CFHTMLTOPDF won't work, but yes CFDocument will (it does the PDF processing within the same JVM as CF, which in this case may be an advantage, but usually it's not and one of the reasons the newer tag uses that separate service).)
    /Charlie (troubleshooter, carehart. org)