Not exactly related to the above, but I've been co...
# cfml-general
t
Not exactly related to the above, but I've been converting cfdocument things to cfhtmltopdf this week, and found the following odd behaviors: in cfdocumentitem, you can embed an image in html with the <img> tag. In cfhtmltopdfitem, you cannot. it seems to just ignore the tag completely. So then I had to use <cfhtmltopdf image="blah"> which is fine-ish. But it doesn't allow you to scale and format things as nicely as CSS, so I had to use the image functions to manipulate the image first. And in the process, I discovered that within cfhtmltopdfitem, images are rendered at 70 pixels per inch. But in the main body in cfhtmltopdf, they're rendered at 95 pixels per inch.
d
Oh dude that sucks. Do you know if wkhtmltopdf is any better?
For me, everything was just fine until I added that header. Good luck to you.
t
I've got it sorted now, but there was a lot that I discovered thorough trial and error that I wished was just in the documentation.
👍🏾 1
👍 1