<?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 : SignFile stack overflow exception</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 : SignFile stack overflow exception]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 14 Jul 2026 03:48:01 +0000</pubDate>
  <lastBuildDate>Fri, 02 Nov 2012 17:24:24 +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=2442</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[SignFile stack overflow exception : Ok,So I completely recreated the...]]></title>
   <link>http://www.quickpdf.org/forum/signfile-stack-overflow-exception_topic2442_post10257.html#10257</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2082">jreed</a><br /><strong>Subject:</strong> 2442<br /><strong>Posted:</strong> 02 Nov 12 at 5:24PM<br /><br />Ok,<div><br></div><div>So I completely recreated the PDF form using Adobe XI Pro, but now I have more problems.</div><div><br></div><div>If I just save the form from Adobe XI and try to fill and sign it, the resulting document is corrupted and when opened results in Acrobat stating there was an error opening the file (code 14 = corrupt).</div><div><br></div><div>So I saved the file As Optimized support Acrobat version 4.0+ and the code 14 error went away.</div><div><br></div><div>However, I can either fill the form fields or sign the file, but not both. &nbsp;If I fill it and sign it, the signature is just gone. &nbsp;If I don't fill the fields and just sign it, the file is signed correctly.</div><div><br></div><div>For the life of me I can't figure this out. &nbsp;The only thing I can see that is different after filling the form fields and calling qp.SaveToFile() is that QuickPDF added Helvetica and ZapfDingbats fonts (not sure why???).</div><div><br></div><div><a href="https://docs.google.com/open?id=0B6ynw2b9mlitR3djRjNuOWxPYjg" target="_blank">Here's my newest test project</a>.&nbsp;</div><div><br></div><div>Please help, I've already wasted a full day and a half on this tool. I'm going to have to move on to another product soon.</div><div><br></div><div>Thanks,</div><div>Jeremy</div>]]>
   </description>
   <pubDate>Fri, 02 Nov 2012 17:24:24 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/signfile-stack-overflow-exception_topic2442_post10257.html#10257</guid>
  </item> 
  <item>
   <title><![CDATA[SignFile stack overflow exception : Andrew,I just tried what you suggested;...]]></title>
   <link>http://www.quickpdf.org/forum/signfile-stack-overflow-exception_topic2442_post10256.html#10256</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2082">jreed</a><br /><strong>Subject:</strong> 2442<br /><strong>Posted:</strong> 02 Nov 12 at 12:48PM<br /><br />Andrew,<div><br></div><div>I just tried what you suggested; still getting the stack overflow exception. &nbsp;</div><div><br></div><div><div>My test project can be downloaded <a href="https://docs.google.com/open?id=0B6ynw2b9mlitQ2tGdlJTSmJpSFU" target="_blank">from here</a>. (VS 2010 C# .Net 4 - target x86)</div><div>The test PDF files are in the zip.</div><div><br></div></div><div><u>That said, here are some new findings.</u></div><div><br></div><div>I've narrowed it down to a specific file that had itsform created using Nitro PDF 8 Pro.</div><div><p ="Mso"><o:p></o:p></p><p ="Mso"><o:p>I have two test PDF files, both files were based on the original "<a href="https://docs.google.com/open?id=0B6ynw2b9mlitdG51NHpGX1RIUDQ" target="_blank">I-9Employment Form.pd</a>f"&nbsp;</o:p></p><p ="Mso"><o:p></o:p></p><p ="Mso"><o:p>The <a href="https://docs.google.com/open?id=0B6ynw2b9mlitbFQ1VmRLRFgtbEE" target="_blank">nitroTest.pdf </a>has a number of form fieldsin it created using Nitro Pro 8. However when I started getting the stackoverflow error (<a href="https://docs.google.com/open?id=0B6ynw2b9mlitNWNrU1MwVzgwenc" target="_blank">screenshot</a>) with this file (trying to sign it with QuickPDF), I edited itwith Adobe XI Pro and replaced the signature field with one from Adobe XI.&nbsp; Still got the stack overflow error.</o:p></p><p ="Mso"><o:p></o:p></p><p ="Mso">The <a href="https://docs.google.com/open?id=0B6ynw2b9mlitd0k1WnVUOUp1REU" target="_blank">I9-adobeXITest.pdf</a>&nbsp;is the original I-9with just a signature filed added, no other form input fields.&nbsp; QuickPDF signs this file without issue.</p><p ="Mso"><o:p></o:p></p><p ="Mso">So what is it that is wrong with nitroTest.pdf? As far asI can tell the only difference between it and I9-adobeXITest.pdf is thatnitroTest.pdf has several form fields and I9-adobeXITest.pdf only has one field= signature.&nbsp;</p><p ="Mso">Jeremy</p></div>]]>
   </description>
   <pubDate>Fri, 02 Nov 2012 12:48:02 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/signfile-stack-overflow-exception_topic2442_post10256.html#10256</guid>
  </item> 
  <item>
   <title><![CDATA[SignFile stack overflow exception : Jeremy,Have you tried running...]]></title>
   <link>http://www.quickpdf.org/forum/signfile-stack-overflow-exception_topic2442_post10254.html#10254</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1483">AndrewC</a><br /><strong>Subject:</strong> 2442<br /><strong>Posted:</strong> 02 Nov 12 at 9:37AM<br /><br /><div>Jeremy,</div><div><br></div>Have you tried running the same Quick PDF Library signfile code using the QPL DLL directly rather than using the QPL DLL that is attached to your DLL. &nbsp;This could help track down the problem.<div><br></div><div>Andrew.</div>]]>
   </description>
   <pubDate>Fri, 02 Nov 2012 09:37:06 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/signfile-stack-overflow-exception_topic2442_post10254.html#10254</guid>
  </item> 
  <item>
   <title><![CDATA[SignFile stack overflow exception : Hi,I keep getting a stack overflow...]]></title>
   <link>http://www.quickpdf.org/forum/signfile-stack-overflow-exception_topic2442_post10249.html#10249</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2082">jreed</a><br /><strong>Subject:</strong> 2442<br /><strong>Posted:</strong> 01 Nov 12 at 10:13PM<br /><br />Hi,<div><br></div><div>I keep getting a stack overflow exception when I try to sign a PDF. For testing purposes I'm using the PFX file that came with the Demo application =&nbsp;qpl_test.pfx</div><div><br></div><div>Here's a snippet from the code that does the signing. &nbsp;The code is in a Class Library project named Foundation.PDF.dll which is referenced by a test console application.</div><div><br></div><div>Note: All other QuickPDF functions are working fine (i.e. filling form values). &nbsp;</div><div>_______</div><div><br></div><div><div>_library = new PDFLibrary(@"3rd/DebenuPDFLibraryDLL0911.dll");</div><div>_library.UnlockKey(Qpdf.Default.LicenseKey);</div><div>if (_library.Unlocked() == 0) throw new Exception("License unlock failed. Please update the LicenseKey setting");</div><div><br></div><div>var result = _library.SignFile(inputFileName, openPassword, signatureFieldName, outputFileName, pfxFileName, pfxPassword, reason, location, contactInfo);</div></div><div><br></div><div>_______</div><div><br></div><div>The variables in the call to sign file are as follows: in order</div><div>inputFileName="test.pdf"</div><div>openPassword=""</div><div>signatureFieldName="Signature_Employee"</div><div>outputFileName="signed.pdf"</div><div>pfxFileName="qpl_test.pfx"</div><div>pfxPassword="testing"</div><div>reason="Employee Signature"</div><div>location="Office"</div><div>contactInfo="user@user.com"</div><div><br></div><div><u>The exception I'm getting reads:</u></div><div><u><br></u></div><div>An unhandled exception of type 'System.StackOverflowException' occurred in Foundation.PDF.dll</div><div><br></div><div><u>The exception occurs in PDFLibrary class:</u></div><div><u><br></u></div><div>public int SignFile(string InputFileName, string OpenPassword, string SignatureFieldName,&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string OutputFileName, string PFXFileName, string PFXPassword, string Reason,&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string Location, string ContactInfo)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (dll == null) return 0;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<font color="#cc0000"> return dll.DebenuPDFLibrarySignFile(instanceID, InputFileName, OpenPassword,&nbsp;</font></div><div><font color="#cc0000">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SignatureFieldName, OutputFileName, PFXFileName, PFXPassword, Reason, Location,&nbsp;</font></div><div><font color="#cc0000">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ContactInfo);</font></div><div>&nbsp; &nbsp; &nbsp; &nbsp; }&nbsp;</div><div><br></div><div>What can I do? I've tried different editors to make the test pdf with a signature field (Adobe XI, Nitro PDF).</div><div><br></div><div>Any help would be greatly appreciated.</div><div><br></div><div>Thanks,</div><div>Jeremy</div>]]>
   </description>
   <pubDate>Thu, 01 Nov 2012 22:13:49 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/signfile-stack-overflow-exception_topic2442_post10249.html#10249</guid>
  </item> 
 </channel>
</rss>