You are not able to see the images in pdf after conversion.
You are trying to see the images added as attachment in form of pdf.
For the first scenario. Pega uses HTML-To-PDF activity internally to convert html content to pdf.
Images for HTML-To-PDF are loaded by Pega's "PDF Resource Handler."
The PDF Resource Handler does not have any idea where "here" is, because it is called when processing arbitrary HTML.
Your source tag here says "go to the directory one level higher than here" which is why the image will never be loaded.
Images must be included via "static content" URLs or full external URLs with host names like "http://www.emailmyname.com/"
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.
If the picture is password-protected in any way, we cannot put it into the PDF because there is no mechanism by which to tell the PDF Resource Handler what the password for each picture is.
please go through the below article this might be of help
I don't really understand the screenshot you provided in the WORD file - the preview of the section doesn't show an image (or does it - does the image look like 'text' on a blue background?)
Also your Activity is apparently doing a 'Propery-Set-HTML' (which is fine - but is it necessary ?) - can you re-code your Activity so that it takes the HTML Rule itself (rather than 'markup') as an argument ?
If you can do that: then you can more easily 'swap-out' the HTMLTOPDF step with a 'ShowStream' Step - which will render the HTML Rule in the browser - which should be more comparable.
Posted: 6 years ago
Posted: 5 Oct 2016 3:22 EDT
pramod kumar (pramodk8)
Application Development Sr Analyst