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.
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).
Does that work ? If this *does* I suspect that the image you have in your particular RTE was *copied* (CTRL-A, CTRL-C from an image editor , then CTRL-V to RTE).
There is a known limitation for this type of image-inclusion (that is: when the image contents are pasted directly into the RTE) - and is already logged as a enhancement request to be considered for inclusion in a future version of PRPC. [ US-170646 ]