- Issue created by @carolea
- 🇦🇺Australia jannakha Brisbane!
try this - https://www.drupal.org/project/drupal/issues/2754273 🐛 Image styles fails with absolute path in $settings['file_public_path'] Needs work
- Status changed to Postponed: needs info
over 1 year ago 6:08am 10 August 2023 Hi,
I tried 2 patches from the link you sent and I still have the same issue.
Is there anything else I can try?
Thanks!
- 🇦🇺Australia jannakha Brisbane!
what about this one?
https://www.drupal.org/project/entity_print/issues/2865185#comment-15191364 🐛 Error generating document: Failed to generate PDF with DOMPDF Needs workset 'base_url' in entity_print settings to your url
When I get the patch from your comment (so took it from this diff https://git.drupalcode.org/project/entity_print/-/merge_requests/19/diffs), composer says it can't apply patch. :(
Ah wait, the base_url is already in config file, just empty. Probably why patch doesn't apply, code is there.
Ok I'll try to set a value to base_url and see what happens.- 🇨🇦Canada liquidcms
I have issues including images in my PDFs as well. Realized it works when site is run as http:// but not when run as https://.
Using DomPDF.
- 🇨🇦Canada liquidcms
Figured out my issue. Just needed to disable SSL verification in Entity Pring SSL config
- 🇨🇦Canada liquidcms
But... i am not able to disable SSL verification on our (Kubernetes) server or view pdf just spins forever. With verification enabled then same result as reported here - PDFs are created but images (and i think CSS) are not included.
- 🇨🇦Canada liquidcms
TCPDF does generate images but PDF is not very representative of the html - img is full size, styles are off. Inline style in tiwg teample have no impact when using tcpdf.
- 🇷🇺Russia vvs Russia
#9 is useful for me, thx.
I think, selfsigned certivicate is not verifying here.
- 🇮🇳India prasanth_kp
For rendering images in Entity Print with Dompdf, you need to convert the image to a base64-encoded string and embed it as inline data.