<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>Debenu Quick PDF Library - PDF SDK Community Forum : Flattening of XFA field</title>
  <link>http://www.quickpdf.org/forum/</link>
  <description><![CDATA[This is an XML content feed of; Debenu Quick PDF Library - PDF SDK Community Forum : I need help - I can help : Flattening of XFA field]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 03:18:58 +0000</pubDate>
  <lastBuildDate>Tue, 22 Apr 2014 13:43:26 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 11.01</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.quickpdf.org/forum/RSS_post_feed.asp?TID=2868</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Debenu Quick PDF Library - PDF SDK Community Forum]]></title>
   <url>http://www.quickpdf.org/forum/forum_images/QPDF_Forum_Title.png</url>
   <link>http://www.quickpdf.org/forum/</link>
  </image>
  <item>
   <title><![CDATA[Flattening of XFA field : Toran,UpdateAndFlattenFormField...]]></title>
   <link>http://www.quickpdf.org/forum/flattening-of-xfa-field_topic2868_post11638.html#11638</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1483">AndrewC</a><br /><strong>Subject:</strong> 2868<br /><strong>Posted:</strong> 22 Apr 14 at 1:43PM<br /><br />Toran,<div><br></div><div>UpdateAndFlattenFormField is not designed to flatten XFA fields. &nbsp;Adobe uses a strange system where it creates FormFields to match the entries in the XFA XML field description. &nbsp;When the xml is updated it will update the dummy formfield attached to the XFA field so it is not a reliable method to flatten XFA fields.<div><br></div><div>You can call QP.RemoveXFAEntries to remove the XFA and leave the Acroform fields then you can use SetFormFieldValue to set the formfield.</div><div><br></div><div><font color="#222222" face="Helvetica Neue, Helvetica, Arial, Liberati&#111;n Sans, FreeSans, sans-serif" size="2"><span style="line-height: 19.5px;">Here is the code you need to use</span></font></div><div><font color="#222222" face="Helvetica Neue, Helvetica, Arial, Liberati&#111;n Sans, FreeSans, sans-serif" size="2"><span style="line-height: 19.5px;"><br></span></font></div><div><font color="#222222" face="Helvetica Neue, Helvetica, Arial, Liberati&#111;n Sans, FreeSans, sans-serif" size="2"><div><span style="line-height: 19.5px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QP.LoadFromFile("i-9.pdf", "");</span></div><div><span style="line-height: 19.5px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QP.RemoveUsageRights();</span></div><div><span style="line-height: 19.5px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QP.RemoveXFAEntries(0);</span></div><div><span style="line-height: 19.5px;"><br></span></div><div><span style="line-height: 19.5px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (int i = QP.FormFieldCount(); i &gt;= 1; i--)</span></div><div><span style="line-height: 19.5px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</span></div><div><span style="line-height: 19.5px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QP.SetFormFieldValue(i, "111");</span></div><div><span style="line-height: 19.5px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QP.UpdateAndFlattenFormField(i);</span></div><div><span style="line-height: 19.5px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</span></div><div><span style="line-height: 19.5px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QP.SetNeedAppearances(0); &nbsp;// Stop Acrobat asking to save the file when closing.</span></div><div><span style="line-height: 19.5px;"><br></span></div><div><span style="line-height: 19.5px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QP.SaveToFile("out.pdf");</span></div><div><br></div><div>Andrew</div></font></div></div>]]>
   </description>
   <pubDate>Tue, 22 Apr 2014 13:43:26 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/flattening-of-xfa-field_topic2868_post11638.html#11638</guid>
  </item> 
  <item>
   <title><![CDATA[Flattening of XFA field :  no... i only know from the past...]]></title>
   <link>http://www.quickpdf.org/forum/flattening-of-xfa-field_topic2868_post11635.html#11635</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 2868<br /><strong>Posted:</strong> 22 Apr 14 at 7:22AM<br /><br />no... i only know from the past that it could be difficult dealing with form fields having identical names.<div>With QuickPDF it's possible to rename fields on the fly while/before processing...</div><div>&nbsp;</div><div>Cheers, Ingo</div>]]>
   </description>
   <pubDate>Tue, 22 Apr 2014 07:22:26 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/flattening-of-xfa-field_topic2868_post11635.html#11635</guid>
  </item> 
  <item>
   <title><![CDATA[Flattening of XFA field : Well, the field names that I posted...]]></title>
   <link>http://www.quickpdf.org/forum/flattening-of-xfa-field_topic2868_post11632.html#11632</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1865">toran</a><br /><strong>Subject:</strong> 2868<br /><strong>Posted:</strong> 22 Apr 14 at 2:15AM<br /><br />Well, the field names that I posted are returned by QPDF Api. Are you suggesting a QPDF bug in processing field names ?]]>
   </description>
   <pubDate>Tue, 22 Apr 2014 02:15:56 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/flattening-of-xfa-field_topic2868_post11632.html#11632</guid>
  </item> 
  <item>
   <title><![CDATA[Flattening of XFA field : I think ...&amp;#034;form1&amp;#034;&amp;#...]]></title>
   <link>http://www.quickpdf.org/forum/flattening-of-xfa-field_topic2868_post11627.html#11627</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 2868<br /><strong>Posted:</strong> 20 Apr 14 at 5:13PM<br /><br />I think ...<div><div style=": rgb251, 251, 253;">"form1&#091;0&#093;"</div><div style=": rgb251, 251, 253;">"form2&#091;0&#093;.#subform1&#091;6&#093;"</div><div style=": rgb251, 251, 253;">"form3&#091;0&#093;.#subform2&#091;7&#093;"</div></div><div style=": rgb251, 251, 253;">... would work.</div><div style=": rgb251, 251, 253;">It's only an idea regarding on similar posts from the past. ;-)</div><div style=": rgb251, 251, 253;"><br></div><div style=": rgb251, 251, 253;">Cheers, Ingo</div><div><br></div>]]>
   </description>
   <pubDate>Sun, 20 Apr 2014 17:13:51 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/flattening-of-xfa-field_topic2868_post11627.html#11627</guid>
  </item> 
  <item>
   <title><![CDATA[Flattening of XFA field : I am using UpdateAndFlattenFormField...]]></title>
   <link>http://www.quickpdf.org/forum/flattening-of-xfa-field_topic2868_post11620.html#11620</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1865">toran</a><br /><strong>Subject:</strong> 2868<br /><strong>Posted:</strong> 14 Apr 14 at 7:35PM<br /><br />I am using <b>UpdateAndFlattenFormField </b>method &nbsp;to flatten XFA fields and the method is failing on some of them. Out of 80 fields (all have similar name structure) the method fails on 3 fields with the names:<div><br></div><div>"form1&#091;0&#093;"</div><div>"form1&#091;0&#093;.#subform&#091;6&#093;"</div><div>"form1&#091;0&#093;.#subform&#091;7&#093;"</div><div><br></div><div>Perhaps it also fails on other fields that are subfields of the above fields, but the return value indicate success.</div><div><br></div><div>What could be the problem?</div><div><br></div><div>Thanks.</div><div><br></div>]]>
   </description>
   <pubDate>Mon, 14 Apr 2014 19:35:22 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/flattening-of-xfa-field_topic2868_post11620.html#11620</guid>
  </item> 
 </channel>
</rss>