<?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 : Random field displacement</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 : Random field displacement]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 01 May 2026 06:38:09 +0000</pubDate>
  <lastBuildDate>Tue, 17 Nov 2009 20:13:11 +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=1106</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[Random field displacement : Actually found a fix to this issue....]]></title>
   <link>http://www.quickpdf.org/forum/random-field-displacement_topic1106_post5843.html#5843</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1090">gkell</a><br /><strong>Subject:</strong> 1106<br /><strong>Posted:</strong> 17 Nov 09 at 8:13PM<br /><br />Actually found a fix to this issue. Basically, I decided, since flattening was the issue, to not flatten at all and instead to rename the child title to the document count and form field index. Example: <DIV>&nbsp;&nbsp;&nbsp;&nbsp; For i = pdf.FormFieldCount To 1 Step -1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lret = pdf.SetFormFieldChildTitle(i, pdf.GetFormFieldTitle(i) &amp; documentCount &amp; i)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'If CStr(pdf.GetFormFieldValue(i)) &lt;&gt; "" Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '&nbsp;&nbsp;&nbsp; lret = pdf.FlattenFormField(i)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'Else<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '&nbsp;&nbsp;&nbsp; lret = pdf.DeleteFormField(i)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'End If<BR>&nbsp;&nbsp;&nbsp;&nbsp; Next</DIV><DIV>And if you need the form to not be edited then you should use SetFormFieldReadOnly function also.</DIV><span style="font-size:10px"><br /><br />Edited by gkell - 17 Nov 09 at 8:17PM</span>]]>
   </description>
   <pubDate>Tue, 17 Nov 2009 20:13:11 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/random-field-displacement_topic1106_post5843.html#5843</guid>
  </item> 
  <item>
   <title><![CDATA[Random field displacement : Hi Niklas:  I know this is frustrating...]]></title>
   <link>http://www.quickpdf.org/forum/random-field-displacement_topic1106_post5838.html#5838</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1140">Shotgun Tom</a><br /><strong>Subject:</strong> 1106<br /><strong>Posted:</strong> 14 Nov 09 at 3:14AM<br /><br />Hi Niklas:<DIV>&nbsp;</DIV><DIV>I know this is frustrating for you.&nbsp; If you submitted the problem to tech support they will get back with you.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;I've tried a few other things and still cannot duplicate the error you're getting.&nbsp; I have viewed the results in Acrobat 9 Pro, PDF XPress Viewer, Adobe Reader 8, FoxIt and a GDPicture ocx viewer I created.&nbsp; The results from all my test files and your error file display the same in each viewer.&nbsp; </DIV><DIV>&nbsp;</DIV><DIV>However, I did note one curious thing... file size.&nbsp; Just for kicks I also flattened your original foo.pdf using Acrobat 9 Pro and GDPicture.&nbsp; The file size on each is quite different.&nbsp; The really strange thing is the file size of your flattened file.</DIV><DIV>&nbsp;</DIV><DIV>Your original foo.pdf, unflattened, is 98302.</DIV><DIV>&nbsp;</DIV><DIV>The file size results of flattening in each of the following:</DIV><DIV>&nbsp;</DIV><DIV>Acrobat 9 Pro:&nbsp; 187352</DIV><DIV>GDPicture:&nbsp; 245658</DIV><DIV>MyFlatRoutine:&nbsp; 248762 (with QuickPDF)</DIV><DIV>YourFlatfoopdf:&nbsp; 93976 </DIV><DIV>&nbsp;</DIV><DIV>Your flattened file size is smaller than the original.&nbsp; How can that be?&nbsp; Even Acrobat, which has the smallest size is double that of the original.</DIV><DIV>&nbsp;</DIV><DIV>I now have tried My routine and file viewing on three computers... one with XP/SP3, one on my neighbor's Vista and on a brand new Windows 7 box.&nbsp; All results are the same.</DIV><DIV>&nbsp;</DIV><DIV>Something strange is happening.&nbsp; It drives me nuts&nbsp;that I can't duplicate your error.</DIV><DIV>&nbsp;</DIV><DIV>I sent you an image of the file size comparisons to your email.</DIV><DIV>&nbsp;</DIV><DIV>Tom</DIV>]]>
   </description>
   <pubDate>Sat, 14 Nov 2009 03:14:56 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/random-field-displacement_topic1106_post5838.html#5838</guid>
  </item> 
  <item>
   <title><![CDATA[Random field displacement : Ok, so I opened a generic Windows...]]></title>
   <link>http://www.quickpdf.org/forum/random-field-displacement_topic1106_post5836.html#5836</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1192">nhemdal</a><br /><strong>Subject:</strong> 1106<br /><strong>Posted:</strong> 13 Nov 09 at 8:41PM<br /><br />Ok, so I opened a generic Windows XP SP3 VM on my Mac&nbsp; to rule out some wierd config on the Wintel box I was using in previous posts.&nbsp; My QA group also gets this intermittent error, so it's not some wierd config issue I think.&nbsp; Other vendors and software work on same HW.&nbsp; No Adobe Reader or Foxit Reader is installed on the VM.&nbsp; I have VB6 SP6 on it, and I installed quickpdf 7.17 and GDViewer OCX for viewing.&nbsp; I created the simple VB6 projects specified in posts above, and same issue out of the gates.&nbsp; I'm at a loss.&nbsp; Product losing credibility in my book - also have yet to hear response from support.]]>
   </description>
   <pubDate>Fri, 13 Nov 2009 20:41:55 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/random-field-displacement_topic1106_post5836.html#5836</guid>
  </item> 
  <item>
   <title><![CDATA[Random field displacement : Ok, I went to my native tongue...]]></title>
   <link>http://www.quickpdf.org/forum/random-field-displacement_topic1106_post5835.html#5835</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1192">nhemdal</a><br /><strong>Subject:</strong> 1106<br /><strong>Posted:</strong> 13 Nov 09 at 7:01PM<br /><br />Ok, I went to my native tongue C#.&nbsp; In addition, I included another PDF component vendor that I use in another project to make sure that I am not losing it.&nbsp; QuickPdf flattened file is incorrect, but other vendor's flattened version is correct.&nbsp; Not only is it correct, but it is 10 times smaller in size.&nbsp; Now, other vendor is native .NET, but in this case I need COM.&nbsp; The conundrum. <DIV><FONT color=#0000ff size=2><FONT color=#0000ff size=2></FONT></FONT>&nbsp;</DIV><DIV><FONT color=#0000ff size=2><FONT color=#0000ff size=2></FONT></FONT>&nbsp;</DIV><DIV><FONT color=#0000ff size=2><FONT color=#0000ff size=2>static</FONT></FONT><FONT size=2> </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>void</FONT></FONT><FONT size=2> Main(</FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>string</FONT></FONT><FONT size=2>&#091;&#093; args)</DIV><DIV><P>{</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>string</FONT></FONT><FONT size=2> sourceFileName = </FONT><FONT color=#800000 size=2><FONT color=#800000 size=2>@"C:\foo.pdf"</FONT></FONT><FONT size=2>;</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>string</FONT></FONT><FONT size=2> destFileName = </FONT><FONT color=#800000 size=2><FONT color=#800000 size=2>@"C:\flatfoo.pdf"</FONT></FONT><FONT size=2>;</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>string</FONT></FONT><FONT size=2> otherVendorDestFileName = </FONT><FONT color=#800000 size=2><FONT color=#800000 size=2>@"C:\otherVendorFlatFoo.pdf"</FONT></FONT><FONT size=2>;</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>string</FONT></FONT><FONT size=2> licenseKey = </FONT><FONT color=#800000 size=2><FONT color=#800000 size=2>"..."</FONT></FONT><FONT size=2>;</P><P>QuickPDFAX0717.</FONT><FONT color=#008080 size=2><FONT color=#008080 size=2>PDFLibrary</FONT></FONT><FONT size=2> qp = </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>new</FONT></FONT><FONT size=2> QuickPDFAX0717.</FONT><FONT color=#008080 size=2><FONT color=#008080 size=2>PDFLibrary</FONT></FONT><FONT size=2>();</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>if</FONT></FONT><FONT size=2> ( 1 == qp.UnlockKey(licenseKey) )</P><P>{</P><P>qp.LoadFromFile(sourceFileName);</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>int</FONT></FONT><FONT size=2> fieldCount = qp.FormFieldCount();</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>for</FONT></FONT><FONT size=2> (</FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>int</FONT></FONT><FONT size=2> i = fieldCount; i &gt;= 1; i--)</P><P>{</P><P>qp.FlattenFormField(i);</P><P>}</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>if</FONT></FONT><FONT size=2> (</FONT><FONT color=#008080 size=2><FONT color=#008080 size=2>File</FONT></FONT><FONT size=2>.Exists(destFileName)) { </FONT><FONT color=#008080 size=2><FONT color=#008080 size=2>File</FONT></FONT><FONT size=2>.Delete(destFileName); }</P><P>qp.SaveToFile(destFileName);</P><P>}</P><P>OtherVendor.</FONT><FONT color=#008080 size=2><FONT color=#008080 size=2>PDFDocument</FONT></FONT><FONT size=2> doc = </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>new</FONT></FONT><FONT size=2> OtherVendor.</FONT><FONT color=#008080 size=2><FONT color=#008080 size=2>PDFDocument</FONT></FONT><FONT size=2>(sourceFileName);</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>if</FONT></FONT><FONT size=2> (</FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>null</FONT></FONT><FONT size=2> != doc)</P><P>{ </P><P>doc.FlattenFormFields ();</P><P>doc.SaveToFile (otherVendorDestFileName);</P><P>}</P><P>}</P></FONT></DIV><span style="font-size:10px"><br /><br />Edited by nhemdal - 13 Nov 09 at 7:01PM</span>]]>
   </description>
   <pubDate>Fri, 13 Nov 2009 19:01:04 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/random-field-displacement_topic1106_post5835.html#5835</guid>
  </item> 
  <item>
   <title><![CDATA[Random field displacement : Tom, I still get the same behavior...]]></title>
   <link>http://www.quickpdf.org/forum/random-field-displacement_topic1106_post5834.html#5834</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1192">nhemdal</a><br /><strong>Subject:</strong> 1106<br /><strong>Posted:</strong> 13 Nov 09 at 6:38PM<br /><br /><DIV>Tom,</DIV><DIV>I still get the same behavior with the code snippet that you supplied.&nbsp; </DIV><DIV>&nbsp;</DIV><DIV>VB6 SP6</DIV><DIV>XP SP2</DIV><DIV>QuickPDF 7.17 - standard license valid to version&nbsp; 7.99</DIV><DIV>&nbsp;</DIV><DIV>Info reported by sysinternals ProcExp when running compiled simple vb6 test project:</DIV><DIV>QuickPDFAX0717.dll&nbsp;&nbsp; v 7.17.1029.0209</DIV><DIV>VB VM v.&nbsp; 6.00.0098.0002</DIV><DIV>typical mumbo jumbo ms support files</DIV><DIV>&nbsp;</DIV><DIV>Foxit Phantom 1.0 flattens the pages correctly on my system.</DIV><DIV>&nbsp;</DIV><DIV>-noh</DIV>]]>
   </description>
   <pubDate>Fri, 13 Nov 2009 18:38:17 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/random-field-displacement_topic1106_post5834.html#5834</guid>
  </item> 
  <item>
   <title><![CDATA[Random field displacement : Hi Niklas: I have tried, over...]]></title>
   <link>http://www.quickpdf.org/forum/random-field-displacement_topic1106_post5833.html#5833</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1140">Shotgun Tom</a><br /><strong>Subject:</strong> 1106<br /><strong>Posted:</strong> 13 Nov 09 at 4:46PM<br /><br /><P>Hi Niklas:</P><DIV></DIV>I have tried, over a dozen times,&nbsp;flattening the foo.pdf file you sent me.&nbsp; Each time it correctly flattens the fields.<DIV>&nbsp;</DIV><DIV>I reduced the flattening to the smallest amount of code possible.&nbsp; </DIV><DIV>&nbsp;</DIV><DIV>Start a new project.&nbsp; Add the QuickPDF 7.17 reference library.&nbsp; Add a single command button.&nbsp; Paste the following code into your project:</DIV><DIV>&nbsp;</DIV><DIV>'-----------------------------------------------------------------</DIV><DIV>Option Explicit<BR>Dim QP<BR>Dim i As Integer<BR>Private ret As Long<BR></DIV><DIV>Private Sub Command1_Click()<BR>&nbsp;<BR>&nbsp;Dim PDFFileName As String<BR>&nbsp;Dim SaveFileName As String<BR>&nbsp;Dim FieldCount As Integer<BR>&nbsp;<BR>&nbsp;PDFFileName =&nbsp; ' put your source file here "C:\Documents\foo.pdf"<BR>&nbsp;SaveFileName = 'put your destination save file pathname here&nbsp;"C:\Documents\footomflat.pdf"<BR>&nbsp;<BR>&nbsp;If QP.LoadFromFile(PDFFileName) = 1 Then<BR>&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; 'How many fields to fill?<BR>&nbsp;&nbsp;&nbsp; </DIV><DIV>&nbsp;&nbsp; FieldCount = QP.FormFieldCount()</DIV><DIV>&nbsp;&nbsp; MsgBox FieldCount 'should be 192 for your form<BR>&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp; For i = FieldCount To 1 Step -1<BR>&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.FlattenFormField i</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp; Next<BR>&nbsp;&nbsp;&nbsp;&nbsp; </DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If QP.SaveToFile(SaveFileName) = 1 Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MsgBox "saved - " &amp; SaveFileName &amp; vbCrLf<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Else<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MsgBox "Error, file could not be written. - " &amp; PDFFileName &amp; vbCrLf<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<BR>&nbsp;&nbsp; <BR>&nbsp;&nbsp; Else<BR>&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MsgBox "Error, file not loaded."<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp; End If<BR>End Sub</DIV><DIV>&nbsp;</DIV><DIV>Private Sub Form_Load()<BR>&nbsp; ClassName = "QuickPDFAX0717.PDFLibrary"<BR>&nbsp; LicenseKey = "xxxxxxxxxxxxxxxxx" 'SET YOUR LICENSE KEY HERE...<BR>&nbsp; Set QP = CreateObject(ClassName)<BR>&nbsp; ret = QP.UnlockKey(LicenseKey)<BR>&nbsp; MsgBox ret</DIV><DIV>&nbsp;</DIV><DIV>End Sub</DIV><DIV>'-------------------------------------</DIV><DIV>&nbsp;</DIV><DIV>It works correctly every time I've run on my system.&nbsp; If this project works correctly on yours then there has to be some other code in your project that is causing the problem.</DIV><DIV>&nbsp;</DIV><DIV>Tom<BR></DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 13 Nov 2009 16:46:01 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/random-field-displacement_topic1106_post5833.html#5833</guid>
  </item> 
  <item>
   <title><![CDATA[Random field displacement : Upgrading to 7.17 did not help....]]></title>
   <link>http://www.quickpdf.org/forum/random-field-displacement_topic1106_post5832.html#5832</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1192">nhemdal</a><br /><strong>Subject:</strong> 1106<br /><strong>Posted:</strong> 13 Nov 09 at 2:50PM<br /><br />Upgrading to 7.17 did not help.&nbsp; It does not happen on the same form field all the time either.&nbsp; ]]>
   </description>
   <pubDate>Fri, 13 Nov 2009 14:50:49 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/random-field-displacement_topic1106_post5832.html#5832</guid>
  </item> 
  <item>
   <title><![CDATA[Random field displacement : Given a template PDF - downloaded...]]></title>
   <link>http://www.quickpdf.org/forum/random-field-displacement_topic1106_post5830.html#5830</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1192">nhemdal</a><br /><strong>Subject:</strong> 1106<br /><strong>Posted:</strong> 13 Nov 09 at 1:40PM<br /><br />Given a template PDF - downloaded IRS form slightly customized using Foxit Phantom.&nbsp; I created a simple vb6 project with one button with code-behindas follows:<DIV>&nbsp;</DIV><DIV>Option Explicit</DIV><DIV>'Private pdfLib As QuickPDFAX0716.PDFLibrary<BR>Private pdfLib As Object</DIV><DIV>Private Sub cmdFlatten_Click()</DIV><DIV>&nbsp;&nbsp;&nbsp; On Error GoTo TrapError</DIV><DIV>&nbsp;&nbsp;&nbsp; Dim fso As Object<BR>&nbsp;&nbsp;&nbsp; Set fso = CreateObject("Scripting.FileSystemObject")</DIV><DIV>&nbsp;&nbsp;&nbsp; If (pdfLib Is Nothing) Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set pdfLib = CreateObject("QuickPDFAX0716.PDFLibrary")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pdfLib.UnlockKey ("...")<BR>&nbsp;&nbsp;&nbsp; End If</DIV><DIV>&nbsp;&nbsp;&nbsp; Dim outputFullPath As String<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; Dim testPdfCount As Integer<BR>&nbsp;&nbsp;&nbsp; testPdfCount = 3<BR>&nbsp;&nbsp;&nbsp; Dim j As Integer<BR>&nbsp;&nbsp;&nbsp; For j = 1 To testPdfCount<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; outputFullPath = "C:\footest" &amp; CStr(j) &amp; ".pdf"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If (fso.FileExists(outputFullPath)) Then fso.DeleteFile (outputFullPath)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fso.CopyFile "C:\foo.pdf", outputFullPath<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Call pdfLib.LoadFromFile(outputFullPath)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim I As Integer<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim FieldCount As Integer<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FieldCount = pdfLib.FormFieldCount()<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; For I = FieldCount To 1 Step -1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pdfLib.FlattenFormField I<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Next<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Call pdfLib.SaveToFile(outputFullPath)<BR>&nbsp;&nbsp;&nbsp; Next<BR>Cleanup:<BR>&nbsp;&nbsp;&nbsp; Exit Sub<BR>TrapError:<BR>&nbsp;&nbsp;&nbsp; MsgBox Err.Description<BR>&nbsp;&nbsp;&nbsp; Resume Cleanup</DIV><DIV>End Sub</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>This will still generate the error intermittently.</DIV>]]>
   </description>
   <pubDate>Fri, 13 Nov 2009 13:40:55 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/random-field-displacement_topic1106_post5830.html#5830</guid>
  </item> 
  <item>
   <title><![CDATA[Random field displacement : I&amp;#039;d be happy to take a look...]]></title>
   <link>http://www.quickpdf.org/forum/random-field-displacement_topic1106_post5829.html#5829</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1140">Shotgun Tom</a><br /><strong>Subject:</strong> 1106<br /><strong>Posted:</strong> 13 Nov 09 at 2:34AM<br /><br />I'd be happy to take a look at it if you'd like.&nbsp; How are you populating the form fields?<DIV>&nbsp;</DIV><DIV>You can email the pdf form to t.m.o.r.a.n4511 at&nbsp;h.o.t.m.a.i.l. dot com</DIV><DIV>&nbsp;</DIV><DIV>The email address is purposefully disguised to avoid getting spam mail from scrapers.&nbsp; Remove the periods and use the correct syntax (the @ symbol, etc.) for sending email if you'd like to send it.</DIV><DIV>&nbsp;</DIV><DIV>Tom</DIV>]]>
   </description>
   <pubDate>Fri, 13 Nov 2009 02:34:42 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/random-field-displacement_topic1106_post5829.html#5829</guid>
  </item> 
  <item>
   <title><![CDATA[Random field displacement : Here is the screenshot of my issue....]]></title>
   <link>http://www.quickpdf.org/forum/random-field-displacement_topic1106_post5828.html#5828</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1192">nhemdal</a><br /><strong>Subject:</strong> 1106<br /><strong>Posted:</strong> 13 Nov 09 at 1:44AM<br /><br /><P>Here is the screenshot of my issue.&nbsp; <a href="http://www.hemdal.com/Blogs/tabid/54/Default.aspx" target="_blank">http://www.hemdal.com/Blogs/tabid/54/Default.aspx</A>&nbsp; &nbsp;The left-aligned K under the 700 should say 750.&nbsp; If not flattened it is correct.&nbsp; Running flattenformfield causes this.</P>]]>
   </description>
   <pubDate>Fri, 13 Nov 2009 01:44:17 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/random-field-displacement_topic1106_post5828.html#5828</guid>
  </item> 
 </channel>
</rss>