Question
Print section to PDF including images and formatting
We have reviewed the following standard approach:
https://community.pega.com/video-library/support-guide-print-complete-textarea-control-content-pdf
(calling activities pyAttachAsPDF -> HTMLToPDF, take HTML stream which includes sections as parameter).
It works perfectly fine as shown in the video, but the images are removed.
We looked at generatePDF API documentation which processes PDF, but cannot see any constant field value responsible for showing images: check Engine API doc.
Do you know, how to make images appear in the generated PDF?
Or should custom solution be used for that?
Hi,
One thing to note here is, we support "static content" stored in Pega and absolute URLs.
If the picture is at an HTTPS url or FTPS URL, we cannot guarantee that the download will be successful.
Having said that, if you have a requirement of displaying static content(Image), please refer to attached documents:
1. How to create PDF with Images.docx (Steps on how to save jpg file as binary rule and call it in section)
2. PDF_containing_Image.pdf :- Sample pdf generated
Hope this helps.
Regards,
Ashish