<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Show appian image in pdf generated</title><link>https://community.appian.com/discussions/f/process-mining/34741/show-appian-image-in-pdf-generated</link><description>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</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Show appian image in pdf generated</title><link>https://community.appian.com/thread/134125?ContentTypeID=1</link><pubDate>Wed, 24 Apr 2024 07:19:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:707eeb70-b2f3-41b1-ac06-fa4b48fe6c84</guid><dc:creator>aishwaryaa913655</dc:creator><description>&lt;p&gt;got it. will try it. thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Show appian image in pdf generated</title><link>https://community.appian.com/thread/134117?ContentTypeID=1</link><pubDate>Wed, 24 Apr 2024 06:56:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:239de7fc-b341-47c3-9a58-b262c8fb6672</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;I use that CSS to adjust the size of the images. Without it, all images are rendered full page.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Show appian image in pdf generated</title><link>https://community.appian.com/thread/134113?ContentTypeID=1</link><pubDate>Wed, 24 Apr 2024 06:51:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:684827a2-8a75-4ce6-84fb-f6b0c5addc27</guid><dc:creator>aishwaryaa913655</dc:creator><description>&lt;p&gt;If i have dynamic images loaded lets say 3 images, You mentioned -&amp;gt;&amp;nbsp;&lt;span&gt;separate max-width CSS for the image tag made the difference. This tag will be applicable on images wherever i show it. It should&amp;nbsp;bring up the images right?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Show appian image in pdf generated</title><link>https://community.appian.com/thread/134108?ContentTypeID=1</link><pubDate>Wed, 24 Apr 2024 06:31:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:447a6d35-823d-4cc3-9f68-747a9b5945fb</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;The provided HTML code will not show any image when directly opened in a browser. It is specifically meant to be processed by the HTML-to-PDF plugin.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Show appian image in pdf generated</title><link>https://community.appian.com/thread/134086?ContentTypeID=1</link><pubDate>Wed, 24 Apr 2024 03:57:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5aed024c-833e-46e2-b916-520aa0f84cf4</guid><dc:creator>aishwaryaa913655</dc:creator><description>&lt;p&gt;If I directly use this code in my process model html template its showing image icon but no image in it. Should i use it with that plugin? &lt;a href="/members/stefanhelzle0001"&gt;Stefan Helzle&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Show appian image in pdf generated</title><link>https://community.appian.com/thread/134085?ContentTypeID=1</link><pubDate>Wed, 24 Apr 2024 03:39:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:02e8c232-613c-4a75-9f7b-ded34559dae3</guid><dc:creator>aishwaryaa913655</dc:creator><description>&lt;p&gt;Thank you everyone. I will try this and update here &lt;a href="/members/stefanhelzle0001"&gt;Stefan Helzle&lt;/a&gt;&amp;nbsp;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Show appian image in pdf generated</title><link>https://community.appian.com/thread/134050?ContentTypeID=1</link><pubDate>Tue, 23 Apr 2024 15:57:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6a7f8b77-a3fa-4a70-9c7a-297ce943f8bc</guid><dc:creator>Shubham Aware</dc:creator><description>&lt;p&gt;Nice! Good to know Stefan.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Show appian image in pdf generated</title><link>https://community.appian.com/thread/134045?ContentTypeID=1</link><pubDate>Tue, 23 Apr 2024 14:58:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b9a72313-1474-47f9-8203-d943650d0509</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;After updating my post, I started to investigate the source code of the plugin and found an undocumented feature. You can easily add an image, uploaded into Appian, using the following HTML.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;img appianDocId=&amp;quot;12345&amp;quot; /&amp;gt;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;What a welcome surprise !!!&lt;/p&gt;
&lt;p&gt;I had a hard time to adjust the size of the image as the plugin manipulates the inline style of images, but was successful using the following code:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
&amp;lt;style&amp;gt;
img {
  max-width: 100% !important;
  max-height: 100% !important;
}
div {
  width: 50mm;
  height: 60mm;
  border: dotted 5px black
}
&amp;lt;/style&amp;gt;
&amp;lt;body&amp;gt;
&amp;lt;div&amp;gt;
&amp;lt;img appianDocId=&amp;quot;22613&amp;quot; /&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The separate max-width CSS for the image tag made the difference.&lt;/p&gt;
&lt;p&gt;I am going to add this to my post as well.&lt;/p&gt;
&lt;p&gt;Have fun!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Show appian image in pdf generated</title><link>https://community.appian.com/thread/133964?ContentTypeID=1</link><pubDate>Mon, 22 Apr 2024 11:09:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b3d131f9-f1ec-4a83-ad30-281124655377</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;I like idea nr 3. The plugin can add an image at a specific page and coordinate and scale it to a width and height. So, we can add a placeholder to the HTML and add the image on top in a second step.&lt;/p&gt;
&lt;p&gt;I will test this and update my blog post:&amp;nbsp;&lt;a href="https://appian.rocks/2023/10/23/great-pdfs-with-appian/"&gt;https://appian.rocks/2023/10/23/great-pdfs-with-appian/&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Show appian image in pdf generated</title><link>https://community.appian.com/thread/133961?ContentTypeID=1</link><pubDate>Mon, 22 Apr 2024 10:35:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:702eb64a-a316-4e0f-9abb-b80f4b8d6896</guid><dc:creator>Mathieu Drouin</dc:creator><description>&lt;p&gt;Check put this thread on some options for converting images to base64.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://community.appian.com/discussions/f/integrations/34728/how-to-send-appian-document-in-base-64-format-to-external-system-through-appian-integration/133826"&gt;community.appian.com/.../133826&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Show appian image in pdf generated</title><link>https://community.appian.com/thread/133958?ContentTypeID=1</link><pubDate>Mon, 22 Apr 2024 10:12:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:76d9c288-8bd6-44b8-904b-2146fef19a77</guid><dc:creator>aishwaryaa913655</dc:creator><description>&lt;p&gt;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.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Show appian image in pdf generated</title><link>https://community.appian.com/thread/133955?ContentTypeID=1</link><pubDate>Mon, 22 Apr 2024 09:59:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e6641f00-daa8-4f12-96ba-db0d56d79f28</guid><dc:creator>Shubham Aware</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&amp;nbsp;,&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/65/Capture.PNG" /&gt;&lt;br /&gt;But you can try this options :-&lt;br /&gt;1) Upload image publicly(cloud storage).Use image URL directly in HTML&amp;#39;s src attribute.&lt;br /&gt;2) Encode&lt;a href="/b/appmarket/posts/base64-document-database-integration"&gt; image to Base64&lt;/a&gt;, pass it to your HTML template, use &amp;quot;data:image/jpeg;base64,[your_data]&amp;quot; in the image source to display it in the PDF.&lt;br /&gt;3) Try this plugin &lt;a href="/b/appmarket/posts/pdf-utilities"&gt;Add Image To PDF - To add image in the PDF document&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Show appian image in pdf generated</title><link>https://community.appian.com/thread/133950?ContentTypeID=1</link><pubDate>Mon, 22 Apr 2024 09:24:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7ef26c3b-614c-4684-9851-bab848822967</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>