Could someone clarify a limitation for me in CF 20...
# cfml-general
g
Could someone clarify a limitation for me in CF 2023 Standard regarding pdf creation? When generating 100's of PDFs using cfhtmltopdf, I am unable to use cfdocument elsewhere in my app. I was under the impression these acted independently of each other, but after testing it doesn't seem to be the case. I understood that cfdocument had a limitation of running one at a time in Standard, which is why we chose to use cfhtmltopdf for the batches. But they seem to be holding up the cfdocument calls as well. Any thoughts would be appreciated!
p
@Mark Takata (Adobe) for that
1
m
There's technically two PDF engines in CF currently: the engine which runs cfhtmltopdf/cfdocument and the one which runs the DDX commands for cfpdf (the latter of which is still Livecycle). You can run a cfhtmltopdf/cfdocument process in parallel with DDX commands, but not parallel to each other. It is one of the primary differentiators between cf standard and cf enterprise. This single-threaded nature is also applied to things like sending mail. For more info on the differences, see my video here:

https://www.youtube.com/watch?v=z-qHryp8p6c

(its a couple years old but has info on most of the differences).
g
Thanks for the clarification @Mark Takata (Adobe)!
❤️ 1
c
Actually, that would be 3 engines then. The one that does cfdocument is neither DDX nor the add-on service and its PDFG web app (which serves the cfhtmltopdf), which runs as a separate process from CF. Instead cfdocument processing is done via an embedded "ice browser" feature within CF--that runs literally in process with CF. Not big-timing or showing off (Mark knows that about me), just offering further clarification--to anyone who may care to know. :-) And the "limiting" (allowing only one request at a time, across a set of just several tags) is indeed a surprising gotcha on Standard, for folks who hit it (and realize it's what's causing a hangup for such requests). FWIW, I discuss it more in a preso I did on the many (many) differences between CF Std and Enterprise: https://www.carehart.org/presentations/#differences_std_ent Hope that's helpful to someone.
👍 1