I am running the official Docker Coldfusion Container:
When I try to create a PDF using <CFDOCUMENT>, I receive the following error message.
I know that lucee had some problems with this based on the Java version, but I assumed that the official image/container would work.
Here is the code block it works great on the exact same version of ColdFusion installed locally.
<cfdocument format="pdf" scale="#URL.scale#"> <cfoutput>#cfhttp.filecontent#</cfoutput> </cfdocument>
Copy link to clipboard
I'm not so sure that's going to work. The Docker container has a pretty stripped-down version of CF in it, as far as I can tell. CF normally comes with a bunch of platform-specific libraries as well as CF itself. You can connect it to an external add-on service - which would normally be installed on the same machine as CF - but this external add-on service isn't actually part of the Docker container. There are several Docker environment variables that will let you point it to an external source.
Compounding my answer a little bit is that I'm not sure whether the add-on service is responsible for CFDOCUMENT or just the newer CFHTMLTOPDF tags. But I do know that either way, it's using stuff that's not actually part of CF. So I'm not so confident it'll work in any case.
Dave Watts, Eidolon LLC
I just ran into this issue, today.
is there a way to specify a pdf service running on a different machine?