<?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 : After Merging, &#102;orm fields are lost</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 : General Discussion : After Merging, &#102;orm fields are lost]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 04 May 2026 09:50:28 +0000</pubDate>
  <lastBuildDate>Thu, 05 Jan 2006 11:07:52 +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=238</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[After Merging, &#102;orm fields are lost : Hi Ingo  Thanks again 4 your support...]]></title>
   <link>http://www.quickpdf.org/forum/after-merging-form-fields-are-lost_topic238_post879.html#879</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=153">jabaltie</a><br /><strong>Subject:</strong> 238<br /><strong>Posted:</strong> 05 Jan 06 at 11:07AM<br /><br />Hi Ingo<br /><br />Thanks again 4 your support !<br /><br />I had thought about this before and had also unsucessfully tried it.<br /><br />Anyway, I tried it again, in another way and now it's WORKING !<br /><br />Below is another script, which is working.<br /><br />What I disliked :<br /><br />- I had to delete page # 1 because it is a blank page<br />- I'm afraid that the performance may not be so nice<br /><br /><br />The Script, after all :<br /><br /><br />OPTION EXPLICIT<br /><br />DIM objPDF,docFinalPDF,docPDF2beMerged,lni<br /><br />Set objPDF = WScript.CreateObject("ISED.QUICKPDF")<br />WScript.Echo "UnlockKey ",objPDF.unlockkey("mykey")<br /><br />docFinalPDF=objPDF.NewDocument()<br />WScript.Echo "New&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;",docFinalPDF<br /><br />WScript.Echo "Load File ",objPDF.LoadFromFile("FILEA.PDF")<br />&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;docPDF2beMerged=objPDF.DocumentID(3)<br />WScript.Echo "doc id M  ",docPDF2beMerged<br /><br />WScript.Echo "field CNT ",objPDF.FormFieldCount<br />for lni=1 to objPDF.FormFieldCount<br />&nbsp;&nbsp;&nbsp;&nbsp;WScript.Echo objPDF.GetFormFieldTitle(lni)<br />next<br />WScript.Echo "set form f",objPDF.SetFormFieldValueByTitle("FIELD1FROMFILEA","*field1fromfilea*")<br /><br />WScript.Echo "Selected  ",objPDF.SelectDocument(docFinalPDF)<br />WScript.Echo "Merge&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;",objPDF.MergeDocument(docPDF2beMerged)<br /><br /><br />WScript.Echo "Load File ",objPDF.LoadFromFile("FILEB.PDF")<br />&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;docPDF2beMerged=objPDF.DocumentID(3)<br />WScript.Echo "doc id M  ",docPDF2beMerged<br /><br />WScript.Echo "field CNT ",objPDF.FormFieldCount<br />for lni=1 to objPDF.FormFieldCount<br />&nbsp;&nbsp;&nbsp;&nbsp;WScript.Echo objPDF.GetFormFieldTitle(lni)<br />next<br />WScript.Echo "set form f",objPDF.SetFormFieldValueByTitle("FIELD1FROMFILEB","*field1fromfileb*")<br />WScript.Echo "set form f",objPDF.SetFormFieldValueByTitle("FIELD2FROMFILEB","*field2fromfileb*")<br /><br />WScript.Echo "Selected  ",objPDF.SelectDocument(docFinalPDF)<br />WScript.Echo "Merge&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;",objPDF.MergeDocument(docPDF2beMerged)<br /><br /><br />WScript.Echo "Deletepage",objPDF.DeletePages(1,1)<br />WScript.Echo "save&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;",objPDF.SaveToFile("C:\TEMP\TEST.PDF")<br />]]>
   </description>
   <pubDate>Thu, 05 Jan 2006 11:07:52 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/after-merging-form-fields-are-lost_topic238_post879.html#879</guid>
  </item> 
  <item>
   <title><![CDATA[After Merging, &#102;orm fields are lost : Hi! Have this behavior something...]]></title>
   <link>http://www.quickpdf.org/forum/after-merging-form-fields-are-lost_topic238_post877.html#877</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 238<br /><strong>Posted:</strong> 05 Jan 06 at 9:53AM<br /><br />Hi!<br />Have this behavior something to do with documents and files? You know the library offers functions like DocumentCount and DocumentID. I think your new file has two documents and you have to select (one after the other) the two documents and document for document you can work with your formfields...<br />I don't know if it's so ... i think it's so ;-)<br /><span style="font-size:10px"><br /><br />Edited by Ingo</span>]]>
   </description>
   <pubDate>Thu, 05 Jan 2006 09:53:03 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/after-merging-form-fields-are-lost_topic238_post877.html#877</guid>
  </item> 
  <item>
   <title><![CDATA[After Merging, &#102;orm fields are lost : I&amp;#039;m trying to merge several...]]></title>
   <link>http://www.quickpdf.org/forum/after-merging-form-fields-are-lost_topic238_post876.html#876</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=153">jabaltie</a><br /><strong>Subject:</strong> 238<br /><strong>Posted:</strong> 05 Jan 06 at 8:20AM<br /><br />I'm trying to merge several PDF files with empty form fields (templates) into a single one. <br /><br />It happens that after the merging process, the form fields are lost. Only the form fields of the firstly added file are left.<br /><br />My guess is this is a bug on QuickPDF itself.<br /><br />I inserted below a VBScript that shows the problem.<br /><br />What do I need after all ? <br /><br />I need to add several templates, that is PDFs with form fields, each one corresponding to a page. Then I need to substitute each field content with data. Of course, I need to substitute ALL of the fields, from all the pages. I can do this substitution process either doing it page per page, that is replacing the fields while I add the pages, or at once, at the end of the merging process. But I do need to replace ALL of the fields.<br /><br />Finally, here's the script :<br /><br />---------------------------------------------------<br /><br />OPTION EXPLICIT<br /><br />DIM objPDF1,objPDF2,objPDF3,lni,mykey<br /><br />mykey="mykey"<br /><br />Set objPDF1 = WScript.CreateObject("ISED.QUICKPDF")<br /><br />WScript.Echo objPDF1.LibraryVersion<br /><br />WScript.Echo "UnlockKey&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;",objPDF1.unlockkey(mykey)<br /><br />WScript.Echo "Load File&nbsp;&nbsp;&nbsp;A ",objPDF1.LoadFromFile("FILEA.PDF")<br />'You may get a copy of this template from here : 'http://www.DES.online.unimep.br/au/FILEA.PDF<br /><br />for lni=1 to objPDF1.FormFieldCount<br />&nbsp;&nbsp;&nbsp;&nbsp;WScript.Echo "Field #",lni," from  A ",objPDF1.GetFormFieldTitle(lni)<br />next<br /><br />WScript.Echo "Load File&nbsp;&nbsp;&nbsp;B ",objPDF1.LoadFromFile("FILEB.PDF")<br />'You may get a copy of this template from here : 'http://www.DES.online.unimep.br/au/FILEB.PDF<br /><br />for lni=1 to objPDF1.FormFieldCount<br />&nbsp;&nbsp;&nbsp;&nbsp;WScript.Echo "Field #",lni," from  B ",objPDF1.GetFormFieldTitle(lni)<br />next<br /><br />WScript.Echo "***SO FAR SO GOOD ! FILES ARE LOADED OK AND FIELDS DISPLAYED AS EXPECTED"<br />WScript.Echo "------------------------------------------------------------------------"<br /><br />' LET THE PROBLEMS BEGIN NOW BY MERGING BOTH FILES...<br /><br />Set objPDF2 = WScript.CreateObject("ISED.QUICKPDF")<br /><br /><br />WScript.Echo "UnlockKey ",objPDF2.unlockkey(mykey)<br /><br />WScript.Echo "Add File A",objPDF2.AddToFileList("mfl","FILEA.PDF")<br />WScript.Echo "Add File B",objPDF2.AddToFileList("mfl","FILEB.PDF")<br />WScript.Echo "Merge to C",objPDF2.MergeFileList("mfl","FILEC.PDF")<br />WScript.Echo "Clear&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;",objPDF2.ClearFileList("mfl")<br /><br />WScript.Echo "***MERGING PROCESS HAS BEEN COMPLETED OK..."<br />WScript.Echo "------------------------------------------------------------------------"<br /><br />Set objPDF3 = WScript.CreateObject("ISED.QUICKPDF")<br /><br />WScript.Echo "UnlockKey&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;",objPDF3.unlockkey(mykey)<br /><br />WScript.Echo "Load File&nbsp;&nbsp;&nbsp;C ",objPDF3.LoadFromFile("FILEC.PDF")<br />WScript.Echo "Field Count C ",objPDF3.FormFieldCount<br /><br />for lni=1 to objPDF3.FormFieldCount<br />&nbsp;&nbsp;&nbsp;&nbsp;WScript.Echo "Field #",lni," from  A ",objPDF3.GetFormFieldTitle(lni)<br />next<br /><br />WScript.Echo "***OPS - WHERE ARE THE FORM FIELDS FROM FILE B ?"<br /><br /><br />When I execute the script above on my machine, it says :<br /><br /><br />5.11<br />UnlockKey&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1<br />Load File&nbsp;&nbsp;&nbsp;A  1<br />Field # 1  from  A  FIELD1FROMFILEA<br />Load File&nbsp;&nbsp;&nbsp;B  1<br />Field # 1  from  B  FIELD1FROMFILEB<br />Field # 2  from  B  FIELD2FROMFILEB<br />***SO FAR SO GOOD ! FILES ARE LOADED OK AND FIELDS DISPLAYED AS EXPECTED<br />------------------------------------------------------------------------<br />UnlockKey  1<br />Add File A 1<br />Add File B 1<br />Merge to C 2<br />Clear&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1<br />***MERGING PROCESS HAS BEEN COMPLETED OK...<br />------------------------------------------------------------------------<br />UnlockKey&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1<br />Load File&nbsp;&nbsp;&nbsp;C  1<br />Field Count C  1<br />Field # 1  from  A  FIELD1FROMFILEA<br />***OPS - WHERE ARE THE FORM FIELDS FROM FILE B ?<br />]]>
   </description>
   <pubDate>Thu, 05 Jan 2006 08:20:04 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/after-merging-form-fields-are-lost_topic238_post876.html#876</guid>
  </item> 
 </channel>
</rss>