Skip to main content
Participant
Oct 14, 2019 1:02 PM UTC
Question

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

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 is closed to new replies. Start a new post to keep the conversation going.

    4 replies

    Charlie Arehart
    Community Expert
    Community Expert
    Oct 14, 2019 8:38 PM UTC

    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/

    Translate
    /Charlie (troubleshooter, carehart. org)
    Participant
    Oct 15, 2019 11:20 AM UTC
    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.
    Translate
    Charlie Arehart
    Community Expert
    Community Expert
    Oct 15, 2019 11:29 AM UTC
    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).)
    Translate
    /Charlie (troubleshooter, carehart. org)