<?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>How to flatten the PDF generated using standard Appian &amp;#39;PDF Doc From Template&amp;#39; smartservice (under Document generation)?</title><link>https://community.appian.com/discussions/f/general/13887/how-to-flatten-the-pdf-generated-using-standard-appian-pdf-doc-from-template-smartservice-under-document-generation</link><description>How to flatten the PDF generated using standard Appian &amp;#39;PDF Doc From Template&amp;#39; smartservice (under Document generation)? 
 I am using a PDF Template(fillable PDF form created using Foxit Phantom) with some form fields, whose values are dynamically filled</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to flatten the PDF generated using standard Appian 'PDF Doc From Template' smartservice (under Document generation)?</title><link>https://community.appian.com/thread/71497?ContentTypeID=1</link><pubDate>Thu, 16 Jan 2020 20:28:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:81749912-b4f8-4b95-9613-798bf77588dd</guid><dc:creator>Rafael Reynoso</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: How to flatten the PDF generated using standard Appian 'PDF Doc From Template' smartservice (under Document generation)?</title><link>https://community.appian.com/thread/70249?ContentTypeID=1</link><pubDate>Wed, 30 Oct 2019 20:58:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a68d5057-186a-49de-9391-a8478b539b42</guid><dc:creator>Joubin Izadi</dc:creator><description>&lt;p&gt;Hi jamesg,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I understand this is 11 months late, but I found&amp;nbsp;two solutions to your issue.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The first is the one I&amp;#39;m currently using and the simpler one - mark the form fields as Read Only in Adobe.&lt;/p&gt;
&lt;p&gt;Then, the OOTB PDF Doc From Template smart service can still populate the form fields, but the final PDF will no longer be editable.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The second is to use the Fill PDF plugin (part of PDF tools). You can add the form fields when you populate the PDF Fields data input by passing in an array of dictionary like so:&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;{name = &amp;quot;formField1&amp;quot;, value = &amp;quot;value1&amp;quot;},&lt;/p&gt;
&lt;p&gt;{name = &amp;quot;formField2&amp;quot;, value = &amp;quot;value2&amp;quot;},&lt;/p&gt;
&lt;p&gt;etc.&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;This solution should work as well - you&amp;#39;ll have to manually set up the names of the fields yourself though, the smart service can&amp;#39;t parse that automatically.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to flatten the PDF generated using standard Appian 'PDF Doc From Template' smartservice (under Document generation)?</title><link>https://community.appian.com/thread/66194?ContentTypeID=1</link><pubDate>Mon, 29 Apr 2019 12:35:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d04a4c8c-0736-432e-8144-6ac2c283b76f</guid><dc:creator>sam.cunard</dc:creator><description>&lt;p&gt;I&amp;#39;ve run into this issue as well.&lt;/p&gt;
&lt;p&gt;The Fill PDF plugin has a lot of limitations, as does the PDF from Template smart service. I think that, provided you don&amp;#39;t mind the extra server load, would be to use the PDF from Template smart service, output the new document into a PV, and pass that immediately into a Fill PDF plugin in order to flatten it. As I mentioned, the only issue would be the added server load due to creating double the documents without the ability to delete them in-process.&lt;/p&gt;
&lt;p&gt;Would love for Appian to add the ability to flatten within the smart service- which has much more documentation and information available online.&lt;/p&gt;
&lt;p&gt;Cheers!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to flatten the PDF generated using standard Appian 'PDF Doc From Template' smartservice (under Document generation)?</title><link>https://community.appian.com/thread/63010?ContentTypeID=1</link><pubDate>Mon, 26 Nov 2018 15:36:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c6bb6e2b-810b-45a3-9e88-f17e15b636f8</guid><dc:creator>Justin Watts</dc:creator><description>I&amp;#39;m not aware of an option to do this with the OOTB service. Definitely not ideal, but could you potentially run the Appian service, THEN run the Fill PDF service (or maybe even one of the other services - I haven&amp;#39;t gone through all of the code in awhile to know offhand which ones call the flatten method on completion)?&lt;br /&gt;
&lt;br /&gt;
Alternatively, a few other ideas (none of them great, admittedly): a new service to flatten in PDF could be built or you could look at generating a dynamic Word document and then convert that to PDF which would lock it down.&lt;br /&gt;
&lt;br /&gt;
In any case, improving the Appian smart service to support a flattening option sounds like an enhancement request that should be submitted to Appian Support.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>