Question
PDF export with images
We have a requirement that in a case, we have a property which is displayed as RTE (i.e. end user can add any HTML code in it including images, tables etc.).
Also they need a way to export this data in PDF format. When we try to use HTMLToPDF and Code-Pega-PDF.View activity , it works fine. Except that it does not get the images from the TE, just have empty space for images.
(also we checked https://community1.pega.com/community/pega-support/question/rte-images-are-not-exporting-pdf-image-title-spaces and confirmed that our RTE images are not having space, as it is copy pasted)
Note: We are using Pega 7.2.1.
What would be the way out for this?
***Edited by Moderator Marissa to update platform capability tags****
HTMLTOPDF should convert and include images in the output PDF - so long as they are hosted/referenced within the PRPC system itself.
If the images are externally hosted; they will not be fetched by the conversion process; and will be missing from the PDF; you would need to fetch them individually yourself and store them in PRPC first.
(There is no guarantee that your PRPC system is allowed [for good security reasons] to access external websites which are hosting images: so just because your desktop browser can access them, this doesn't necessarily mean your PRPC system [or indeed any back-end web app] can see them also).