what webkit rendering engine does CF use when usin...
# cfml-general
j
what webkit rendering engine does CF use when using cfhtmltopdf?
b
Pretty sure it's wkthmltopdf
j
thanks
do you happen to know how current the webkit engine is….does it support flexbox?
b
No idea
but if you poke around in the add on services folder, you may be able to find it
When you call the cfhtmltopdf tag in ColdFusion, it makes an API request to a Jetty-powered Java API which runs as the external PDF service which in turn runs the actual htmltopdf engine
j
good to know…
g
I don't believe it supports flexbox, but it's easy to test. Just create an HTML page and use the portable EXE on your own workstation to test. There's also a portable QTWeb browser that uses the same HTML renderer. If it doesn't look good & print as expected with it, it probably won't work with WKHTMLTOPDF either. https://www.qtweb.net/ I noticed that Google Maps is blocking it based on feature detection. (Its rare, but NodeJS w/Puppeteer works to convert pages/divs of very advanced HTML to PNGs for inclusion within a PDF.)
j
thanks @gamesover
in reality i am looking for a PDF technology, not necessarily CF based, that has the most support for html, css, js (if possible)…so I will look at Puppeteer
m
I would definitely start with things like flex though, to begin narrowing down. https://azettl.github.io/html2pdf/CSS-Properties/F/#-flex
j
thanks @Matt Jones that is super helpful