<?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>Convert DOCX to PDF and show in document view</title><link>https://community.appian.com/discussions/f/general/21506/convert-docx-to-pdf-and-show-in-document-view</link><description>Hi, 
 I have a requirement to read uploaded DOCX file from appian uploads folder convert it to PDF and show in document viewer on richtext icon click. I have been able to convert DOCX file to PDF but not able to show it in document viewer. 
 Please help</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Convert DOCX to PDF and show in document view</title><link>https://community.appian.com/thread/129259?ContentTypeID=1</link><pubDate>Fri, 09 Feb 2024 09:51:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f065d8dd-ba8b-405b-8ebb-a07bfa0c079d</guid><dc:creator>thiliniumesha</dc:creator><description>&lt;p&gt;thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert DOCX to PDF and show in document view</title><link>https://community.appian.com/thread/129256?ContentTypeID=1</link><pubDate>Fri, 09 Feb 2024 09:22:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:da8b7e35-58e7-4cab-a196-8fbe59aa0084</guid><dc:creator>Chiara Gambone</dc:creator><description>&lt;p&gt;&amp;nbsp; that&amp;#39;s the expected behavior, you can&amp;#39;t preview a docx you must convert it to PDF to show it with the document viewer.&lt;/p&gt;
&lt;p&gt;As to why a docx can&amp;#39;t be previewed, it has to do with the browser -&amp;gt;&amp;nbsp;&lt;a href="https://community.appian.com/discussions/f/plug-ins/17468/preview-docx-doc-xls-etc-in-browser"&gt;community.appian.com/.../preview-docx-doc-xls-etc-in-browser&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert DOCX to PDF and show in document view</title><link>https://community.appian.com/thread/129209?ContentTypeID=1</link><pubDate>Fri, 09 Feb 2024 03:29:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:875d456d-bde5-4662-ad22-9fd8e19597e4</guid><dc:creator>thiliniumesha</dc:creator><description>&lt;p&gt;I got the same issue. cannot see the docx document in the document viewer and insted of showing document getting downloaded&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert DOCX to PDF and show in document view</title><link>https://community.appian.com/thread/84051?ContentTypeID=1</link><pubDate>Mon, 26 Jul 2021 15:26:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:67ea999d-6194-4be6-8d7d-59ed7bfa23c0</guid><dc:creator>Selvakumar Kumarasamy</dc:creator><description>&lt;p&gt;&lt;a href="/members/shamima0001"&gt;shamima0001&lt;/a&gt;, As mike said, you need to pass the converted PDF file into the form. Also, the data type of the rule input should be a &amp;#39;&lt;strong&gt;document&lt;/strong&gt;&amp;#39; type.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert DOCX to PDF and show in document view</title><link>https://community.appian.com/thread/84045?ContentTypeID=1</link><pubDate>Mon, 26 Jul 2021 14:32:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6b42d47d-57f5-41a4-8a45-995ea65ba6ab</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;You need to save the (new) Doc ID of the converted PDF into a PV, and pass that value into your user input task&amp;#39;s interface.&amp;nbsp; I&amp;#39;m not sure what you&amp;#39;re intending to do in the screenshot above, but what we can see is not enough.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert DOCX to PDF and show in document view</title><link>https://community.appian.com/thread/84044?ContentTypeID=1</link><pubDate>Mon, 26 Jul 2021 14:29:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:002b4eb2-44ae-4ddf-997d-97edb621406e</guid><dc:creator>shamima0001</dc:creator><description>&lt;p&gt;I have implemented what you mentioned above,&amp;nbsp;now instead of viewing PDF file in document viewer its downloading DOCX file when I am running PM.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/11/pastedimage1627309628522v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:underline;"&gt;&lt;strong&gt;UserInput&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:underline;"&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/11/pastedimage1627309693530v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert DOCX to PDF and show in document view</title><link>https://community.appian.com/thread/84041?ContentTypeID=1</link><pubDate>Mon, 26 Jul 2021 13:19:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0a36d5c0-06b9-4b76-89c7-c38fdf4c8509</guid><dc:creator>Selvakumar Kumarasamy</dc:creator><description>&lt;p&gt;Oh okay, got confused with your reply.&lt;/p&gt;
&lt;p&gt;You can have another User Input task after the PDF conversion node and show the document inside that form. Since the path is activity chained, after clicking on upload, the process will convert the document and show it in the next interface where the user lands.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert DOCX to PDF and show in document view</title><link>https://community.appian.com/thread/84038?ContentTypeID=1</link><pubDate>Mon, 26 Jul 2021 13:12:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b0ed4128-1d8d-48ad-95cc-a169138ec76a</guid><dc:creator>shamima0001</dc:creator><description>&lt;p&gt;I know how to show PDF file in document viewer. My requirement is to get DOCX file convert it and show it document viewer on the fly, Below is the Interface &amp;amp; Process Model&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:underline;"&gt;&lt;strong&gt;Interface&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/11/pastedimage1627305065897v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!file,
  
  {
  a!fileUploadField(
    label: &amp;quot;File Upload&amp;quot;,
    labelPosition: &amp;quot;ABOVE&amp;quot;,
    target: cons!TCT_UPLOAD_FILES_FOLD,
    value: local!file,
    saveInto:local!file,
    required: true,
    validations: {}
  ),
    a!buttonArrayLayout(
      buttons: {
        a!buttonWidget(
          label: &amp;quot;Upload&amp;quot;,
          icon: &amp;quot;upload&amp;quot;,
          saveInto: {
            a!save(ri!file,local!file)
          },
          submit: true,
          style: &amp;quot;PRIMARY&amp;quot;
        )
      },
      align: &amp;quot;START&amp;quot;
    ),
    a!documentViewerField(
      label: &amp;quot;Document Viewer&amp;quot;,
      labelPosition: &amp;quot;ABOVE&amp;quot;,
      document: ri!pdfFile,
      height: &amp;quot;MEDIUM&amp;quot;
    )
}
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:underline;"&gt;&lt;strong&gt;Process Model&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/11/pastedimage1627305132791v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert DOCX to PDF and show in document view</title><link>https://community.appian.com/thread/84037?ContentTypeID=1</link><pubDate>Mon, 26 Jul 2021 12:57:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:72bbcc13-97ad-489c-9449-f5e62bcf8108</guid><dc:creator>Selvakumar Kumarasamy</dc:creator><description>&lt;p&gt;I hope this documentation helps you. Just&amp;nbsp;pass&amp;nbsp;your documentId for the document parameter.&lt;br /&gt;&lt;br /&gt;&lt;a href="https://docs.appian.com/suite/help/21.2/Document_Viewer_Component.html"&gt;docs.appian.com/.../Document_Viewer_Component.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert DOCX to PDF and show in document view</title><link>https://community.appian.com/thread/84036?ContentTypeID=1</link><pubDate>Mon, 26 Jul 2021 12:52:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f93a7748-361f-4aa9-82b7-76547cf03414</guid><dc:creator>shamima0001</dc:creator><description>&lt;p&gt;I am not facing any error, I just don&amp;#39;t know how to achieve it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert DOCX to PDF and show in document view</title><link>https://community.appian.com/thread/84035?ContentTypeID=1</link><pubDate>Mon, 26 Jul 2021 12:51:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:647a786f-1b3d-41bb-a51a-c4dffae57069</guid><dc:creator>Selvakumar Kumarasamy</dc:creator><description>&lt;p&gt;Hi &lt;a href="/members/shamima0001"&gt;shamima0001&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;Could you please share the error that you&amp;#39;re facing?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>