<?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>PDF FROM DOCX</title><link>https://community.appian.com/discussions/f/general/30904/pdf-from-docx</link><description>I am generating pdf document but document may contains special characters like ( &amp;rsquo;,&amp;gt;,&amp;lt;,*,&amp;quot;,) so i am getting error, 
 is there any way to resolve this ?</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: PDF FROM DOCX</title><link>https://community.appian.com/thread/124117?ContentTypeID=1</link><pubDate>Fri, 12 Jan 2024 14:48:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ae1304df-c658-4d78-8985-a3bddd6d86b5</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="266862" url="~/discussions/f/general/30904/pdf-from-docx/124079"]Any update?[/quote]
&lt;p&gt;The user never answered my follow-up question, so I couldn&amp;#39;t really tell you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PDF FROM DOCX</title><link>https://community.appian.com/thread/124079?ContentTypeID=1</link><pubDate>Fri, 12 Jan 2024 06:06:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c80a8e2e-6f91-4687-a37f-d417f0bb3792</guid><dc:creator>ZackLakin</dc:creator><description>&lt;p&gt;Any update?&amp;nbsp;The user never answered my follow-up question, so I couldn&amp;#39;t really tell you. Your success is the mission at DoMyPaper. I delved into &lt;a href="https://domypaper.com/"&gt;https://domypaper.com/&lt;/a&gt; to do my paper for me and their services and discovered a world of academic support that goes beyond expectations. From robust plagiarism checks to a team of dedicated writers, they&amp;#39;ve got it all. If you&amp;#39;re wondering how to elevate your academic experience, DoMyPaper has the answer. Explore their services and witness the transformation of your goals into accomplishments.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PDF FROM DOCX</title><link>https://community.appian.com/thread/123132?ContentTypeID=1</link><pubDate>Wed, 13 Dec 2023 14:33:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e471f842-6af4-41fa-949b-5ba4a4cc0cc7</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="256578" url="~/discussions/f/general/30904/pdf-from-docx/123118"]i am using above code to escape char[/quote]
&lt;p&gt;Where and how are you doing this, specifically?&amp;nbsp; If it&amp;#39;s done in the wrong spot / in the wrong way, it&amp;#39;ll be useless.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PDF FROM DOCX</title><link>https://community.appian.com/thread/123119?ContentTypeID=1</link><pubDate>Wed, 13 Dec 2023 07:46:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f2020ba4-0b7a-450c-94be-fe249d5aa2b5</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;OpenXML seems to be a bit different. Check the last comment here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://stackoverflow.com/questions/5875322/ooxml-sdk-illegal-character-replacements"&gt;stackoverflow.com/.../ooxml-sdk-illegal-character-replacements&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PDF FROM DOCX</title><link>https://community.appian.com/thread/123118?ContentTypeID=1</link><pubDate>Wed, 13 Dec 2023 07:38:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ae149499-8453-4d9c-ad43-3b62a49559f9</guid><dc:creator>Sudhir Singh</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!searchString: cons!GAI_XML_CHARS_TO_ESCAPE,
  local!replaceString: {
    &amp;quot;&amp;amp;&amp;quot;,
    &amp;quot;&amp;#39;&amp;quot;,
    &amp;quot;&amp;lt;&amp;quot;,
    &amp;quot;&amp;gt;&amp;quot;,
    &amp;quot;&amp;quot;&amp;quot;
  },
  local!indexFirstCharacter: if(
    a!isNullOrEmpty(ri!charsToEscape),
    null,
    cast(
      typeof(0),
      wherecontains(
        tostring(index(ri!charsToEscape, 1, null)),
        touniformstring(local!searchString)
      )
    )
  ),
  local!replaceFirstChar: if(
    a!isNullOrEmpty(ri!charsToEscape),
    null,
    regexreplaceall(
      tostring(
        local!searchString[local!indexFirstCharacter]
      ),
      ri!inputString,
      tostring(
        local!replaceString[local!indexFirstCharacter]
      )
    )
  ),
  local!nextCharsToEscape: remove(ri!charsToEscape, 1),
  if(
    a!isNullOrEmpty(local!nextCharsToEscape),
    local!replaceFirstChar,
    rule!GAI_Common_EscapeXMLCharacters(
      inputString: local!replaceFirstChar,
      charsToEscape: local!nextCharsToEscape
    )
  )
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;i am using above code to escape char, but in PDF instead of &amp;amp; showing&amp;nbsp;&amp;amp;amp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PDF FROM DOCX</title><link>https://community.appian.com/thread/123117?ContentTypeID=1</link><pubDate>Wed, 13 Dec 2023 07:37:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:172cff3e-39ea-43d6-a042-a08477c473f5</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;&lt;a href="https://www.google.de/search?q=escaping+xml+characters"&gt;www.google.de/search&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PDF FROM DOCX</title><link>https://community.appian.com/thread/123116?ContentTypeID=1</link><pubDate>Wed, 13 Dec 2023 07:35:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:779275de-550e-47ba-afdc-fa0ac1695fe3</guid><dc:creator>Sudhir Singh</dc:creator><description>&lt;p&gt;&amp;nbsp;Stefan, how to escape this &lt;span&gt;characters ?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PDF FROM DOCX</title><link>https://community.appian.com/thread/123115?ContentTypeID=1</link><pubDate>Wed, 13 Dec 2023 07:33:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2d202e0b-41ab-4080-8115-d5af25943136</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;DOCX is a XML document. You need to XML escape these characters.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>