I search around and found other people with the same issue, but no solutions.
I am making a pdf and I want to embed an image. I have 2 lucee Apps, same server, same code, different directories, In the 1st dir with no issue, pdf looked great. When I moved the code(below) to the second directory, the pdf always is created with the image not drawn. The image file is present in both directory hierarchies.
Any help in getting this to work or at least an output any error that can be causing this? All i have is a pdf with the image border with nothing inside.
So i have 2 dirs(change for simplicity)
So my real.cfm program in marc1 works with no issues. I moved the real.cfm code to marc2 directory and that did not work. So I made the test.cfm in marc2 and that did not work. I just tested test.cfm in marc1 and the pdf does not work. Strange, the image tag is the same. If needed i will upload the real.cfm, but it has a lot of other code(noise) vs the test.cfm
I added FileExists to the pdf test.cfm files. FileExistsis is true in both directories but the image tag does not work in the second dir.
Question about the image tag. I tried to change src to relative and absolute and many other ways. What is the correct way to code the “src” path for a pdf. Not the issue here, but might help. I coded it as a html.
do the 404s get logged to the access.log or error.log ?
if imageWriteToBrowser() allowed passing thru custom attributes for the image tag, it would be a nice solution, but it currently just sets the height and width to the image size and you can’t pass in a css class or style. That would completely avoid the whole problem of paths