Thanks, I can also generate PNG directly. But the PDF is about 10 times smaller with SVG, so I would prefer that. Unfortunately, it doesn’t work with PNG either.
The following code:
<cfdocument format="pdf">
<h1>Welcome to Lucee</h1>
<h5>Example Page</h5>
<p>Example for <b>Cfdocument</b></p>
1<img src="https://dev.moby.ch/img/map.png" width="1191" height="624" alt="">2
</cfdocument>
The image problem seems to be an issue with nslookup. When I move the images to production and adjust the URLs accordingly, they are also printed in the PDF. Now I’m wondering what I need to do to make it work in the dev environment as well. The images are displayed in the browser…
I also found out that SVGs are printed in Classic mode.
Does anyone use a different PDF engine that offers a little more functionality? Perhaps with examples or code to share?
@martin you made my day! It’s not the DNS, it’s the certificate. However, I still don’t know how to fix that. At least I noticed when testing with cfhttp that I’m still redirecting everything from http to https, which why http never worked. I could have thought of that earlier. Thanks!
I would also be very grateful for any tips on how to fix the certificate issue.
@Schumatech It will depend on what the issue with the certificate is. However, problems are often solved by making sure you are using an up-to-date version of Java. You can also try importing the certificate:
It looks like that will only work with Lucee 5 though.
There is also a section in the admin to install certificates:
Services > SSL Certificates