I can generate a dynamic pdf using html template and html template from doc service followed by PDF from HTML smart service. But cant display image. In html template i am using image src and in src i make it as pv and pass the image field/rich text image with document image having document id from appian. Image is displayed as image icon but no image displayed. Any idea on how to get these done dynamically?
Thanks in advance
Discussion posts and replies are publicly visible
To embed an image into a PDF in the way you described, that image must be added as base64 encoded image in the HTML. At least, that is the only way I am aware of.
To add company logos, I convert these using an external service and copy the string into a constant which I then use for generating the HTML.
i dont see base64 encoding is direct in appian. plugin also has database conversion for base 64 document. Is there anyway to do it dynamically. Because my images i will know the document IDs on runtime querying they recordtype.
Check put this thread on some options for converting images to base64.
community.appian.com/.../133826