How to add Images from URL dynamically based on PO in RTF template as PDF output.?
I am seeking guidance on a requirement to dynamically render images from URLs onto an RTF template for PDF output. I have attempted the following methods:
- URL Tagging: Incorporated the image URL directly into the RTF file using the tag
<?url:{IMAGE_URL}?>
. - AltText Configuration: Added the image URL in the "AltText" field formatted as
url:{'https:....'}
, and attempted to generate the images in both PDF and HTML outputs. - Base64 Encoding: Converted the image URL to Base64 format and used the
<fo:instream-foreign-object content_type="image/jpg" height="2 in" width="2 in"><?IMAGE_URL?></fo:instream-foreign-object>
tag.
Despite these efforts, none of the approaches resulted in images being displayed in the HTML or PDF outputs. I would appreciate any recommendations or solutions that could facilitate the dynamic printing of images from URLs onto a PDF output.
0