Generate PDF with Image from s3/HTTPS resources not show up in JDK 11
Description
Environment
Lucee 5.3.8.181
Pdf ext 1.0.0.97
docker-commandbox 5.3.1 (image: amd64-3.4.0) with jdk 11
Attachments
relates to

Activity

Pothys - MitrahSoft 5 July 2022 at 06:21
Another user has affected by this issue: https://dev.lucee.org/t/exception-on-https-resources-in-pdf-extension-with-classic-rendering/10579
updating the PD4ML library will be the solution for this issue
Andri Senjaya 22 April 2022 at 09:53
with your solution the image from s3 is work with cfdocument classic, but this solution has a problem with memory. When I try with big image or with small image after several time I test, I get JAVA HEAP SIZE error problem.
and also in my application I have a feature to save the html template, and when I save the html with above solution, the file become very big, because the image binary is included in the template.
maybe you have another solution for this?
Andri Senjaya 8 April 2022 at 04:04
when I tested with your above script, it works. attach is the pdf result

Pothys - MitrahSoft 7 April 2022 at 07:08
I hope this workaround will work. can you please try this workaround and report the results here?
Details
Details
Assignee

Reporter
Priority
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
I found when I generate pdf with image from s3 in jdk11 the image is always blank
my code example:
<cfdocument format="PDF">
<img border="0" imagepath="" src="https://indotim-staging-woex-secure.s3.eu-central-1.amazonaws.com/22000/images/E9249798-503D-40FA-B8CB81F6D823B2CB.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20210622T104802Z&X-Amz-SignedHeaders=host&X-Amz-Expires=3599&X-Amz-Credential=SHYDIANSIAHDISDH%2F20210622%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Signature=3fac0a36376c782dc2f861787059491ac6ca3ec87ba44344f3c93003a66d7851" />
</cfdocument>
but in jdk8 this is fine