So, I tried your code with minor modifications on Lucee, changing the
pagetype to A4 to correspond to the 210mm width, fixed a type, you forgot
to close a quote, and positioning the image within a div, using a logo
image file that I embed in PDFs in production, located in the same
directory as the cfdocument template.
this is where mickey mouse lives
The image is embedded in the PDF, as expected. See attached test.pdf.
Removing the div that positions the logo, as below, still results in the
image being embedded in the pdf.
![]()
this is where mickey mouse lives
Reverting the code to your original, where pagetype=“letter” and you forgot
the closing quote on the style attribute of the wrapping div, causes the
image to be rendered somewhere off the canvas of the PDF. Note how in
test3.pdf, something is pushing the text down the page. Here’s the code
that produced the PDF with the image missing:
this is where mickey mouse lives
Closing the quote on the style declaration fixes the issue. The image
reappears:
![]()
this is where mickey mouse lives
Hope that helps.
Nando
Aria Media Sagl
+41 (0)76 303 4477 cell
skype: ariamediaOn Thu, Jan 28, 2016 at 2:36 AM, Barbara ONeal <@Barbara_ONeal> wrote:
Hello, I have an issue that i though was just a Railo issue then i took
some simple code and decided to test on Lucee and found it doens’t work
their either. So here is the issue. the image doesn’t get embedded into
the pdf creation. The PDF is created but the image is missing.
In my original code there is lots of other things but the main issue is
the missing image. any other output gets written to the pdf just not the
image. and in this case the image is in the same directory as the file
creating it and where the pdf is being generated.
this is where mickey mouse lives
I am not sure why this doesn’t embedd the image. I thought at first it
was a Railo Server issue but this code is set on a Lucee site.
any insights would be greatly appreciate. I had someone from the Railo
group working with me, but this was one issue we didn’t get resolved. Is
there some sort of sepcial permission for grabbing an image that shoudl be
set in the lucee admin?
We are currently on Lucee 4.5.2.018 final, on Windowns 2008 R2
Thank you.
You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/9ca84b85-e11e-4714-bd5d-3bd782f25dba%40googlegroups.com
https://groups.google.com/d/msgid/lucee/9ca84b85-e11e-4714-bd5d-3bd782f25dba%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.
test.pdf (23.1 KB)

test2.pdf (23.1 KB)
test3.pdf (19.2 KB)
test4.pdf (23.1 KB)