<?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>Docx from dynamic template Image</title><link>https://community.appian.com/discussions/f/plug-ins/22297/docx-from-dynamic-template-image</link><description>Hello guys, So I was trying to add image to the document (both dynamic and static) . I included the required image doc as constant in my XML. I got the id of the document in the generated document. Some discussions explain about bookmarks. I have tried</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Docx from dynamic template Image</title><link>https://community.appian.com/thread/137702?ContentTypeID=1</link><pubDate>Sun, 07 Jul 2024 22:42:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:be479d7e-d043-4749-8f6b-2050a1a7b7cf</guid><dc:creator>tejaswik505197</dc:creator><description>&lt;p&gt;Hi Acacio,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am trying to show a hyperlink, the input URL&amp;nbsp;will be&amp;nbsp;dynamic with merge field. But it is always redirecting to downloads/URL. Is there a way I can show dynamic URL something like -&amp;nbsp;C:\\Users\Downloads\ (with dynamic URL passed). How can I link only the URL passed with Merge Field.&amp;nbsp;&lt;span&gt;Could you please help with the issue.&amp;nbsp;Thanks.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I tried the merge fields based on the link below.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://blog.softartisans.com/2013/12/31/kb-creating-dynamic-links-with-mergefields-in-microsoft-word/"&gt;blog.softartisans.com/.../&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/19/pastedimage1720392065922v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Tejaswi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Docx from dynamic template Image</title><link>https://community.appian.com/thread/87352?ContentTypeID=1</link><pubDate>Wed, 27 Oct 2021 22:57:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d6951230-8883-4a65-9a6a-b7894997f3d9</guid><dc:creator>Acacio Barrado</dc:creator><description>&lt;p&gt;Hi Kavya,&lt;/p&gt;
&lt;p&gt;You need to use the template image that you added to the document in order to control the size of the image.&lt;/p&gt;
&lt;p&gt;It will keep the size of the place holder.&lt;/p&gt;
&lt;p&gt;Please flag the question as answered as it can help other people.&lt;/p&gt;
&lt;p&gt;Acacio B.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Docx from dynamic template Image</title><link>https://community.appian.com/thread/87335?ContentTypeID=1</link><pubDate>Wed, 27 Oct 2021 07:10:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:aa036505-689c-4266-ae27-9af04e4dc8b5</guid><dc:creator>kavyanatrajan</dc:creator><description>&lt;p&gt;I got my required image but how to control the size of image?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Docx from dynamic template Image</title><link>https://community.appian.com/thread/87333?ContentTypeID=1</link><pubDate>Wed, 27 Oct 2021 05:32:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1dafebf4-dded-43af-a748-4c93114bd9f9</guid><dc:creator>Acacio Barrado</dc:creator><description>&lt;p&gt;Well there is a possibility that your template is wrong.&lt;/p&gt;
&lt;p&gt;Im attaching a template here, in it I have created a bookmark called signature, as in the screenshot in my first&lt;/p&gt;
&lt;p&gt;answer. Please change it in your process model and try to use this template.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://community.appian.com/cfs-file/__key/communityserver-discussions-components-files/19/Community-Test.docx"&gt;community.appian.com/.../Community-Test.docx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Acacio B.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Docx from dynamic template Image</title><link>https://community.appian.com/thread/87332?ContentTypeID=1</link><pubDate>Wed, 27 Oct 2021 05:18:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2b4f795f-12fa-4234-8708-987ed78d4641</guid><dc:creator>kavyanatrajan</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for the response, I tried to add a single document by saving it in a process variable , But still I am getting my template image as output image in document. Is that the template image has any problem?&lt;/p&gt;
&lt;p&gt;Kavya&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Docx from dynamic template Image</title><link>https://community.appian.com/thread/87331?ContentTypeID=1</link><pubDate>Wed, 27 Oct 2021 05:08:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:94d21309-baaa-4c71-bedf-c198f086380b</guid><dc:creator>Acacio Barrado</dc:creator><description>&lt;p&gt;Hey there,&lt;/p&gt;
&lt;p&gt;I would try few other things.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;You should not have a list of images been passed in the same input, so ideally if you want to have 4 different images you would have something like the code below:&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;{
  logo: pv!document1,
  image2: pv!document2,
  image3: pv!document3,
  image4: pv!document4,
}&lt;/pre&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Don&amp;rsquo;t forget to create a different bookmark for image.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;If you need the same image to be different, apply the condition in the process model and then send to the input parameter just the correct document in the correct bookmark&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Last, I would not use directly constant in the input parameter, I would rather create a PV type of document in the process model, and in one script task I would pass the constant to the PV, than use the PV in the input parameter. I know that this sound a bit silly and redundant, but I faced issues before, when directly using the constant, so it is worth to try.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I hope that helps&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Acacio B.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Docx from dynamic template Image</title><link>https://community.appian.com/thread/87329?ContentTypeID=1</link><pubDate>Wed, 27 Oct 2021 04:28:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:606ebb2b-0076-478a-bd07-8d4ded419508</guid><dc:creator>kavyanatrajan</dc:creator><description>&lt;p&gt;Hi Acacio,&lt;/p&gt;
&lt;p&gt;Thanks for the response. I tried your suggestion and I got image at the document. But it was the same template image which I used Not the one I gave in the process model.&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/19/pastedimage1635308694864v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;So for testing , I have used this template for image alone and that was my template image.&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/19/pastedimage1635308790030v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;In this constant it holds four variety of crop image documents.&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/19/pastedimage1635308833007v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;This is what I got as my output.&lt;/p&gt;
&lt;p&gt;Is my template image wrong? Could you please help with the issue. Thanks in Advance.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Docx from dynamic template Image</title><link>https://community.appian.com/thread/87325?ContentTypeID=1</link><pubDate>Tue, 26 Oct 2021 23:36:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a25c71ea-e9c3-4011-bf29-b280870d9e57</guid><dc:creator>Acacio Barrado</dc:creator><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;The way that you have configured your template it is not correct, and there are few things that you will need to change in order to add an image in your DOCX, I&amp;#39;ll try to add some steps here:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;You don&amp;#39;t need to have the document ID in your XML, as the document will be passed&amp;nbsp;in a different parameter of the smart service (Images), check the screenshot below.&lt;/li&gt;
&lt;li&gt;Inside your template you must to have an image as a place holder, it is to this image that you will add the link that contains the bookmark that you created&lt;/li&gt;
&lt;li&gt;If you need the image to be conditional you can add a normal validation before the image, to check if the bookmark has content or not. Please check the screenshot below&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/19/pastedimage1635291275854v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/19/pastedimage1635291322015v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Acacio B&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>