<?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 : Damaged PDF generated</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 : Damaged PDF generated]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 08 Jun 2026 00:09:39 +0000</pubDate>
  <lastBuildDate>Fri, 23 Nov 2007 13:05:33 +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=842</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[Damaged PDF generated : Well folks I guess I have something...]]></title>
   <link>http://www.quickpdf.org/forum/damaged-pdf-generated_topic842_post3939.html#3939</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=153">jabaltie</a><br /><strong>Subject:</strong> 842<br /><strong>Posted:</strong> 23 Nov 07 at 1:05PM<br /><br />Well folks I guess I have something very, very interesting here !!!!!!!!<br><br>I rewrote my source code from XBase++ ("a la" Clipper) to VBScript, as I had said before that I would do.<br><br>Big suprise <img src="http://www.quickpdf.org/forum/smileys/smiley17.gif" border="0" align="absmiddle" alt="T&#111;ngue" /><br><br>While Flattening a form field, VBScript denies to do it .<br><br>Because there is a form field inside the PDF that has a blank name !<br><br>So, the template PDF that is being load is WRONG , I guess.<br><br>I have provided a very useful kit where you can reproduce the problem there at your side. The kit contains :<br><br>A VBscript source code file (TEST027.VBS) and the its corresponding template PDF file (AG284D.PDF).<br><br>Please get the kit from here :<br><br>http://www.DES.online.unimep.br/au/pub/quick.zip<br><br> One more comment :<br><br>- Try to quote the flattenformfield function. That is, let the "for/next" run across all of the form fields without flattenning them all (as the sample below). You'll see that this empty form field is not listed ! Why ?<br><br><br>---------<br>FOR LNI=1 TO 122<br>&nbsp; FORMFIELDNAME=OBJQPDF.GETFORMFIELDTITLE(LNI)<br>&nbsp; SELECT CASE FORMFIELDNAME<br>&nbsp;&nbsp;&nbsp; CASE "TCOCAMPUS"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IF&nbsp; NOT OBJQPDF.SETFORMFIELDVALUE(LNI,"DOWNTON") = 1 THEN<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GETOUT("ERROR WHILE SETTING FORM FIELD VALUE : '" + FORMFIELDNAME + "'")<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END IF<br>'&nbsp;&nbsp;&nbsp; CASE ELSE<br>'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GETOUT("CAN NOT FIND THE VALUE OF FIELD '" + FORMFIELDNAME + "'")<br>&nbsp; END SELECT<br>&nbsp; WSCRIPT.ECHO "'" + FORMFIELDNAME + "'"<br>'&nbsp; IF&nbsp; NOT OBJQPDF.FLATTENFORMFIELD(LNI) = 1 THEN<br>'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GETOUT("ERROR WHILE FLATTENING THIS FORM FIELD '" + FORMFIELDNAME + "'")<br>'&nbsp; END IF<br>NEXT<br><br><br><br><br><br><br><br><br>]]>
   </description>
   <pubDate>Fri, 23 Nov 2007 13:05:33 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/damaged-pdf-generated_topic842_post3939.html#3939</guid>
  </item> 
  <item>
   <title><![CDATA[Damaged PDF generated : Well, I&amp;#039;ve been trying hard...]]></title>
   <link>http://www.quickpdf.org/forum/damaged-pdf-generated_topic842_post3937.html#3937</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=153">jabaltie</a><br /><strong>Subject:</strong> 842<br /><strong>Posted:</strong> 23 Nov 07 at 10:45AM<br /><br />Well, I've been trying hard to make a program to emulate the problem.<br><br>If only I could have that......<br><br>Anyway, more observations :<br><br>- Statistica data : it happens once or twice in 10 generated PDFs.<br><br>- Sometimes it happens at the very first, others at the end, others at the middle.<br><br>- It happens with SAME data submitted to the forms.<br><br>What I'm doing right now is this : the code is called from XBase++ via ActiveX. XBase++ is a Clipper successor.<br><br>I wonder if the problem is not regarded to the function being called from XBase++ itself. Maybe if it were called from VB the problem would not happen.<br><br>In order to do that, what I'll do is to make my XBase++ code generate the VBScript code and then launch the CSCRIPT interpretor.<br><br>All this only to validade if the problem is on XBase++ level or inside VBScript itself.<br><br>I hope that I can evidentiate (make it happen) with VBScript too because then I'll be able to post the source code here.<br><br>Should you have any other ideas (or hipothesys to validate), let me know OK ?<br><br>Thanks 4 your help !<br><br>]]>
   </description>
   <pubDate>Fri, 23 Nov 2007 10:45:50 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/damaged-pdf-generated_topic842_post3937.html#3937</guid>
  </item> 
  <item>
   <title><![CDATA[Damaged PDF generated : Anything that you can generate...]]></title>
   <link>http://www.quickpdf.org/forum/damaged-pdf-generated_topic842_post3933.html#3933</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1">Michel_K17</a><br /><strong>Subject:</strong> 842<br /><strong>Posted:</strong> 23 Nov 07 at 9:15AM<br /><br />Anything that you can generate to describe the problem well or help determine the source could be useful. It might be interesting to try to get statistical data. For example:<br><br>Run a program to fill and then flatten the same PDF 100 times. How many were OK and how many were bad? If all are OK, then it may be a starting condition issue. If not, then it might be a buffer or a timer issue.<br><br>Cheers!<br><br>]]>
   </description>
   <pubDate>Fri, 23 Nov 2007 09:15:59 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/damaged-pdf-generated_topic842_post3933.html#3933</guid>
  </item> 
  <item>
   <title><![CDATA[Damaged PDF generated : As I said before, I have provided...]]></title>
   <link>http://www.quickpdf.org/forum/damaged-pdf-generated_topic842_post3928.html#3928</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=153">jabaltie</a><br /><strong>Subject:</strong> 842<br /><strong>Posted:</strong> 22 Nov 07 at 12:04PM<br /><br />As I said before, I have provided some samples of damaged PDFs and other PDFs which are generated OK :<br><br>This one is OK :<br><br>http://www.DES.online.unimep.br/au/pub/ag284dOK.PDF<br><br>This one is NOT OK :<br><br>http://www.DES.online.unimep.br/au/pub/ag284dE1.PDF<br><br>Right below the "Legenda:" it appears a "2007" content. This is not the content expected for this field...<br>]]>
   </description>
   <pubDate>Thu, 22 Nov 2007 12:04:57 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/damaged-pdf-generated_topic842_post3928.html#3928</guid>
  </item> 
  <item>
   <title><![CDATA[Damaged PDF generated : Yes. You can use Open Office to...]]></title>
   <link>http://www.quickpdf.org/forum/damaged-pdf-generated_topic842_post3927.html#3927</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=153">jabaltie</a><br /><strong>Subject:</strong> 842<br /><strong>Posted:</strong> 22 Nov 07 at 8:37AM<br /><br />Yes. You can use Open Office to generate a document with form fields.<br><br>Then, export this document to PDF and you'll have a PDF with empty form fields.<br><br>With Acrobat Reader you can fill in those fields and print.<br><br>Or, using QuickPDF you can make your application stuff content into those fields and then save back the PDF (or print it).<br><br>Got it ?<br>]]>
   </description>
   <pubDate>Thu, 22 Nov 2007 08:37:21 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/damaged-pdf-generated_topic842_post3927.html#3927</guid>
  </item> 
  <item>
   <title><![CDATA[Damaged PDF generated : Hi!OpenOffice(-Writer) is similar...]]></title>
   <link>http://www.quickpdf.org/forum/damaged-pdf-generated_topic842_post3926.html#3926</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 842<br /><strong>Posted:</strong> 22 Nov 07 at 7:42AM<br /><br />Hi!<br><br>OpenOffice(-Writer) is similar to Word... Is it possible to create OO-templates with textfields (like a serial letter in Word) and then generate pdf-documents?<br><br>Best regards,<br>Ingo<br>]]>
   </description>
   <pubDate>Thu, 22 Nov 2007 07:42:54 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/damaged-pdf-generated_topic842_post3926.html#3926</guid>
  </item> 
  <item>
   <title><![CDATA[Damaged PDF generated : Hello !I have had a very hard...]]></title>
   <link>http://www.quickpdf.org/forum/damaged-pdf-generated_topic842_post3924.html#3924</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=153">jabaltie</a><br /><strong>Subject:</strong> 842<br /><strong>Posted:</strong> 22 Nov 07 at 5:49AM<br /><br />Hello !<br><br>I have had a very hard time here with QuickPDF and the form field functions....<br><br>My architecture there is like this :<br><br>I use PDF templates, which are simply PDFs with empty form fields. To design those templates, I use Open Office, which is free and has a button to export to PDF.<br><br>My application loads those templates and stuff content into their form fields. After doing it, it Flattens all of the PDF form fields and saves the resulting PDF (or prints it).<br><br>It happens that SOMETIMES the generated PDF is wrong, that is, some fields are replaced by others. Or , sometimes one field completely overlaps the other.<br><br>I CAN NOT REPRODUCE the problem, that is, if I generate AGAIN the same template, with the SAME DATA, under the SAME CIRCUMSTANCES, I'll have a perfect PDF being generated.<br><br>I've struggled with this problem for a while an figured out that, when I DO NOT use the FlattenFormField function, I'll have no problem.<br><br>However, I need this function cause I generate those PDFs to be viewed by a web browser. And, of course, we do not want to leave those fields open for the end user cause they could fill them up with other content.<br><br><br>Just don't know what else I can do if not replacing QuickPDF by another product...<br><br>Before I do that , maybe someone else here can help me !<br><br>Here's a sample template :<br><br>http://www.DES.online.unimep.br/au/pub/ag284d.pdf<br><br><br>The contents I'm using to replace the form field values are here :<br><br>http://www.DES.online.unimep.br/au/pub/ag284d.xml (as a matter of fact, my application parses the XML and then loads the template and replaces the form field contents).<br><br>What I have tried so far (and of course has not worked) :<br><br>- Replacing the fields from bottom up, instead of top down<br>- Replacing the form fields all at once and then flattening them all at once, at the end<br>- Save the PDF without flattening and reloading it right after in order to flatten and save it again right away<br>- Isolate the application from a multi threaded context to a single threaded context<br>- Use the DLL version instead of the ActiveX one<br><br>I'll provide later some samples of the wrong PDFs generated. <br><br>Would you have any other suggestions ? The best clue I have is regarded to the FlattenFormField funcion cause it takes way, way too long to run and when I use it on the application, I'll have the problem....<br><br>Thank you so much !<br>]]>
   </description>
   <pubDate>Thu, 22 Nov 2007 05:49:10 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/damaged-pdf-generated_topic842_post3924.html#3924</guid>
  </item> 
 </channel>
</rss>