I'm trying to get the PDFG service to work in CF20...
# adobe
t
I'm trying to get the PDFG service to work in CF2021 on windows, and not having much luck. My initial CF2021 install was via the zip installer, so the addon services were not part of the original install. I have installed the htmltopdf package via cfpm. I have downloaded and installed the add-on services I have started the add-on services service. I have configured and enabled the PDF service in the CF admin. When I click the verify button, it reports that the connection status is "OK" When I attempt to generate a simple PDF via the code below, I get an exception: "Error occurred while generating PDF. Reason: SERVER ERROR" There are no entries in the coldfusion-out, coldfusion-error, or exception log files, nor is there anything in the stderrout log for jetty. The jetty request log does show
127.0.0.1 - - [13/Sep/2024:14:35:41 +0000] "POST /PDFgServlet/ HTTP/1.1" 500 486 "-" "Apache-HttpClient/4.5.13 (Java/11.0.23)"
and I'm assuming that 500 is an http response. But I'm at a loss on where else to look to find out why.
Copy code
<cfscript>
	cfhtmltopdf() {
		WriteOutput("<p>Test</p>");
	}
</cfscript>
c
I was just about to post - since installing update 15 on our staging server we have not been able to generate anything with cfhtmltopdf. we get the same error. I have been able to fix the issue post update 16 on a local environment, but am unable to replicate the fix on the staging environment yet
This isnt the first time we have had issues with cfhtmltopdf. debugging it is almost impossible as its a complete black box implementation
t
hmm.. I'm on update 16.
c
if you have time to try a rollback to 13 would give it a whirl. i just have not got arround to trying a rollback yet
t
I've mostly avoided it like the plague, but I have a client who is having issues with cfdocument causing their server to freeze up -- they have to reboot it several times a day. and I haven't had any luck in tracking that problem down, so i thought I'd try switching.
c
big PDF's can kill things - we had to update the java version the pdf service was using to get around that (didnt seem to blow anything else up)
ill update if i can fix it on our staging server - going to need to get it working at some point
some sort of a combination of stopping/starting the PDF service manager and switching it to HTTPS and then off of HTTPS seems to be the key, with some CF service restarts and Add on service restarts. I just seem to have to poke it long enough and it starts working again. but the exact sequence is a mystery - This is not going to be fun to deploy on live servers.....
why we cant delete the localhost pdf service manager anymore i dont know
t
There was some stuff I was reading yesterday that said that if you restarted the add on services while CF was still running, it wouldn't be able to connect to them anymore. So stopping CF, restarting the addon services, and then starting CF again is the required order for that. But I've done that, and it didn't help for me.
I tried rolling back to update 14, and now coldfusion is broken... so I'm working on that.
I've successfully rolled back to update 13, and I'm still getting the exact same behavior as before.
So after making some progress with Adobe support, it appears that if you use Java 11.0.17+, it breaks. We reinstalled with the default jre and it worked. That was 11.0.11. updating to 11.0.23 broke it again. So then I tried a bunch, and 11.0.16.1 worked, but 11.0.17 didn't.