<?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 : Form Filling Duplication Problem</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 : Form Filling Duplication Problem]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 17:38:57 +0000</pubDate>
  <lastBuildDate>Fri, 04 Jun 2010 17:51:36 +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=1469</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[Form Filling Duplication Problem :  Ingo:I was able to re-create...]]></title>
   <link>http://www.quickpdf.org/forum/form-filling-duplication-problem_topic1469_post6609.html#6609</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1324">DAVe3283</a><br /><strong>Subject:</strong> 1469<br /><strong>Posted:</strong> 04 Jun 10 at 5:51PM<br /><br />Ingo:<br>I was able to re-create the fields and get the result I wanted.&nbsp; However, the re-creation procedure takes a very long time (filling and merging 4 pages of fields takes a fraction of a second, recreating those ~50 fields takes 3-4 seconds).&nbsp; Very strange.<br>Thanks for getting me going!<br><br>Jack:<br>That is pretty much what I am doing with my program.&nbsp; Your method worked great, and much faster than re-creating every field.&nbsp; It was exactly what I was looking for!&nbsp; Thank you!<br><span style="font-size:10px"><br /><br />Edited by DAVe3283 - 04 Jun 10 at 5:53PM</span>]]>
   </description>
   <pubDate>Fri, 04 Jun 2010 17:51:36 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/form-filling-duplication-problem_topic1469_post6609.html#6609</guid>
  </item> 
  <item>
   <title><![CDATA[Form Filling Duplication Problem :  Here is the code I used to add...]]></title>
   <link>http://www.quickpdf.org/forum/form-filling-duplication-problem_topic1469_post6608.html#6608</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1086">Jack</a><br /><strong>Subject:</strong> 1469<br /><strong>Posted:</strong> 04 Jun 10 at 4:37PM<br /><br />Here is the code I used to add the page number to the form fields:<br><br><blockquote><font color="#339966" face="Courier New, Courier, mono">procedure TPDF.AddPageNoToFieldNames(var oPDF: TQuickPDF; iPageNo: Integer);</font><font color="#339966"><br></font><font color="#339966" face="Courier New, Courier, mono">var i: Integer;</font><font color="#339966"><br></font><font color="#339966" face="Courier New, Courier, mono">&nbsp;&nbsp;&nbsp; sFieldName: String;</font><font color="#339966"><br></font><font color="#339966" face="Courier New, Courier, mono">begin</font><font color="#339966"><br></font><font color="#339966" face="Courier New, Courier, mono">&nbsp; for i := 1 to oPDF.FormFieldCount do begin</font><font color="#339966"><br></font><font color="#339966" face="Courier New, Courier, mono">&nbsp;&nbsp;&nbsp; sFieldName := oPDF.GetFormFieldTitle(i);</font><font color="#339966"><br></font><font color="#339966" face="Courier New, Courier, mono">&nbsp;&nbsp;&nbsp; sFieldName := LPad(iPageNo, 3, '0') + '_' + sFieldName;</font><font color="#339966"><br></font><font color="#339966" face="Courier New, Courier, mono">&nbsp;&nbsp;&nbsp; oPDF.SetFormFieldChildTitle(i, sFieldName);</font><font color="#339966"><br></font><font color="#339966" face="Courier New, Courier, mono">&nbsp; end;</font><font color="#339966"><br></font><font color="#339966" face="Courier New, Courier, mono">end;</font><font color="#339966"><br></font></blockquote>It's in Delphi, but it's pretty clear what it's doing.<br>Jack<br>]]>
   </description>
   <pubDate>Fri, 04 Jun 2010 16:37:58 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/form-filling-duplication-problem_topic1469_post6608.html#6608</guid>
  </item> 
  <item>
   <title><![CDATA[Form Filling Duplication Problem : I ran into the same problem in...]]></title>
   <link>http://www.quickpdf.org/forum/form-filling-duplication-problem_topic1469_post6607.html#6607</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1086">Jack</a><br /><strong>Subject:</strong> 1469<br /><strong>Posted:</strong> 04 Jun 10 at 4:28PM<br /><br />I ran into the same problem in my program.&nbsp; It turned out that it was an issue with the way that Acrobat handles fields.&nbsp; If you go into Acrobat and set up a form with two fields named "Test_1" and then put "123" into one of the fields, it will show up in both.&nbsp; Rename one of the fields to "Test_2" and the problem goes away.<br><br>My solution was to load a form from a template and then add the page number to the front of each field and then fill the fields.&nbsp; Some of my forms have master and detail fields too.&nbsp; For them, when I am setting up the form, I add the detail number to the end of the form field.<br><br>My uses have been pretty routine form filling so I probably have not run across every possible test, but QuickPDF has not let me down yet.<br><br>I hope this is helpful.<br><br>Jack<br><br><br>]]>
   </description>
   <pubDate>Fri, 04 Jun 2010 16:28:47 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/form-filling-duplication-problem_topic1469_post6607.html#6607</guid>
  </item> 
  <item>
   <title><![CDATA[Form Filling Duplication Problem : Thanks, I&amp;#039;ll try that and...]]></title>
   <link>http://www.quickpdf.org/forum/form-filling-duplication-problem_topic1469_post6606.html#6606</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1324">DAVe3283</a><br /><strong>Subject:</strong> 1469<br /><strong>Posted:</strong> 04 Jun 10 at 4:25PM<br /><br />Thanks, I'll try that and see if I can get it to work.<br><br>I would have though they would be "abc" as well, but they weren't.&nbsp; Strange.<br><br>Is there a way to rename a field, rather than re-creating every field?<br><br>~David<br>]]>
   </description>
   <pubDate>Fri, 04 Jun 2010 16:25:45 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/form-filling-duplication-problem_topic1469_post6606.html#6606</guid>
  </item> 
  <item>
   <title><![CDATA[Form Filling Duplication Problem : Hi!You have different files with...]]></title>
   <link>http://www.quickpdf.org/forum/form-filling-duplication-problem_topic1469_post6601.html#6601</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 1469<br /><strong>Posted:</strong> 04 Jun 10 at 6:36AM<br /><br />Hi!<br><br>You have different files with identical form field names.<br>After the merge both documents are one new with the same formfield names.<br>So the content is a bit mixed up.<br>For me it's clear. The only difference is that i had thought that in both fields is "abc" ;-)<br>I would change the fieldnames before merging. You can get all properties setting a new one with a name combined with an on going number over the other formfields....<br><br>Cheers and welcome here,<br>Ingo<br>&nbsp;<br>]]>
   </description>
   <pubDate>Fri, 04 Jun 2010 06:36:46 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/form-filling-duplication-problem_topic1469_post6601.html#6601</guid>
  </item> 
  <item>
   <title><![CDATA[Form Filling Duplication Problem : I am having a major problem with...]]></title>
   <link>http://www.quickpdf.org/forum/form-filling-duplication-problem_topic1469_post6600.html#6600</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1324">DAVe3283</a><br /><strong>Subject:</strong> 1469<br /><strong>Posted:</strong> 04 Jun 10 at 3:23AM<br /><br />I am having a major problem with the form filling abilities of QuickPDF.&nbsp; I have several PDF files with form fields, that I want to fill differently.&nbsp; However, when I fill a field once, every field with the same name will be filled with the same information, even in different files.<br><br>I created a simple demo to demonstrate this.&nbsp; It is a Console Application compiled in Visual Studio 2010 Beta 2 and is using .NET Framework 4 Client Profile.<br><table width="99%"><tr><td><pre class="BBcode">using System;<br>using QuickPDFAX0719;<br><br>namespace FormFieldError<br>{<br>&nbsp;&nbsp;&nbsp; class Program<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; static void Main(string&#091;&#093; args)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QuickPDFAX0719.PDFLibrary qp = new PDFLibrary();&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Create a new QuickPDF Lib<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; qp.UnlockKey("j53g73ru93q4dp4ja7ri53b4y");&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // License key for the QuickPDF library (TRIAL - expires 06/23/2010)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int mainDocument = qp.NewDocument();&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Create a new document, store it's id<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int tempDocument;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Holds the id of the loaded document<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Get file paths<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string form1 = System.IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory), "form1.pdf");<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string form2 = System.IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory), "form2.pdf");<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string output = System.IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory), "output.pdf");<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Fill document 1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; qp.LoadFromFile(form1);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Load the form<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tempDocument = qp.SelectedDocument();&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Get the id of the loaded document<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; qp.SetFormFieldValueByTitle("RecordFileNo", "123");&nbsp;&nbsp;&nbsp;&nbsp; // Set the file #<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; qp.SelectDocument(mainDocument);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Select the main document<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; qp.MergeDocument(tempDocument);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Merge the temp document into the main document<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Fill document 2<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; qp.LoadFromFile(form2);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Load the form<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tempDocument = qp.SelectedDocument();&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Get the id of the loaded document<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; qp.SetFormFieldValueByTitle("RecordFileNo", "abc");&nbsp;&nbsp;&nbsp;&nbsp; // Set the file #<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; qp.SelectDocument(mainDocument);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Select the main document<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; qp.MergeDocument(tempDocument);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Merge the temp document into the main document<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Save result<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; qp.SelectDocument(mainDocument);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Select the main document<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; qp.DeletePages(1, 1);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Delete the first (blank) page<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; qp.SaveToFile(output);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Save to disk<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; }<br>}<br></pre></td></tr></table><br>Opening the output.pdf file, you would expect to find the text "123" on the first page and "abc" on the second page.&nbsp; However, both pages have the text "123".<br><br>Am I doing something wrong, or is there a bug in the library?&nbsp; I really need to get this to work for my application, and I already have too much time invested to switch to a different PDF writer.<br><br>Thanks!<br>~David<br>]]>
   </description>
   <pubDate>Fri, 04 Jun 2010 03:23:58 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/form-filling-duplication-problem_topic1469_post6600.html#6600</guid>
  </item> 
 </channel>
</rss>