Ramping up our conversion to Lucee, I see that cfdocument is not retrieving the external css document into the created PDF. Is there a best practice to apply an external css document to html that sits within a cfdocument tag? (can move to cfml-general if in wrong channel)
e
Evil Ware
03/20/2025, 7:13 PM
Do CSS styles inline. The PDF engine in Lucee doesn't render the same way.
🙌 1
e
Erin Brewer
03/20/2025, 7:47 PM
right - you could retrieve the contents of the css file and place inline with the <cfdocument> content
✅ 1
z
zackster
03/21/2025, 1:08 PM
you might need to use a fully qualified url for external resources like css or images
d
David Johnson
03/21/2025, 1:30 PM
These are all great suggestions and I will look into each. I am so excited to see our codebase move to Lucee and to be part of this group. Thanks for your answers!