<?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 : Problem with signing a PDF</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 : Problem with signing a PDF]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 23:16:59 +0000</pubDate>
  <lastBuildDate>Mon, 14 Jan 2019 20:58:07 +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=3657</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[Problem with signing a PDF : Hi Rens,you shouldn&amp;#039;t write...]]></title>
   <link>http://www.quickpdf.org/forum/problem-with-signing-a-pdf_topic3657_post14577.html#14577</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 3657<br /><strong>Posted:</strong> 14 Jan 19 at 8:58PM<br /><br />Hi Rens,<br><br>you shouldn't write these things to me.<br>I'm only a user...<br>I you think that there's an error in the library you should post it on the official support page of the publishers:<br>https://www.debenu.com/products/development/debenu-pdf-library/<br><br><span style="font-size:10px"><br /><br />Edited by Ingo - 14 Jan 19 at 8:58PM</span>]]>
   </description>
   <pubDate>Mon, 14 Jan 2019 20:58:07 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/problem-with-signing-a-pdf_topic3657_post14577.html#14577</guid>
  </item> 
  <item>
   <title><![CDATA[Problem with signing a PDF : Hi Ingo,I have been continue searching...]]></title>
   <link>http://www.quickpdf.org/forum/problem-with-signing-a-pdf_topic3657_post14575.html#14575</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=3090">R-S</a><br /><strong>Subject:</strong> 3657<br /><strong>Posted:</strong> 14 Jan 19 at 2:19PM<br /><br /><div>Hi Ingo,</div><div><br></div><div>I have been continue searching for the problem. It seems to be a problem with bit type you are using. If i call the function in a 32bit solution, the function works fine. But if i build a 64 bit solution i get the memory problem. <br></div><div><br></div><div>I also have tested it with a new project. Making a simple pdf en then trying to sign it. There the same problem occurs. 32bit works, 64 bit doesn't work.</div><div><br></div><div>Can it be that there is something wrong with variables that are parsed wrong in the libary if you use a 64 bit?</div><div><br></div><div>Also, the same problem also come with the function RenderPageToDC, but there the 64bit version works and the 32 bit version doesn't work.</div><div><br></div><div>I hope this might help people and maybe it is a bug?<br></div>]]>
   </description>
   <pubDate>Mon, 14 Jan 2019 14:19:56 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/problem-with-signing-a-pdf_topic3657_post14575.html#14575</guid>
  </item> 
  <item>
   <title><![CDATA[Problem with signing a PDF : Hi Rens,the additions won&amp;#039;t...]]></title>
   <link>http://www.quickpdf.org/forum/problem-with-signing-a-pdf_topic3657_post14553.html#14553</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 3657<br /><strong>Posted:</strong> 04 Jan 19 at 10:47AM<br /><br />Hi Rens,<br><br>the additions won't help.<br>It's like you're telling me that your car doesn't drive and that the reason is that the motor doesn't start. Sorry ;-)<br>Perhaps it has to do with the mixed installation... perhaps...<br>Try to separate 64/32 bit...<br>I don't think that you'll get another hint here...<br><br>]]>
   </description>
   <pubDate>Fri, 04 Jan 2019 10:47:52 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/problem-with-signing-a-pdf_topic3657_post14553.html#14553</guid>
  </item> 
  <item>
   <title><![CDATA[Problem with signing a PDF : Hey Ingo,Thank for you reply.I&amp;#039;m...]]></title>
   <link>http://www.quickpdf.org/forum/problem-with-signing-a-pdf_topic3657_post14552.html#14552</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=3090">R-S</a><br /><strong>Subject:</strong> 3657<br /><strong>Posted:</strong> 04 Jan 19 at 8:37AM<br /><br /><div>Hey Ingo,</div><div><br></div><div>Thank for you reply.</div><div><br></div><div>I'm programming in C3 with visualstudio 2017.</div><div>As for the string handling. I looked it up and don't find a problem with the unicode-format.</div><div>The build target is set to any-cpu and VS is a 32-bit installation.</div><div>Also, i'm using the Dll version 9.16 got both 32 and 64 dll's</div><div><br></div><div>And yes, i have found the examples ans such. Thanks ^^<br></div><div><br></div><div>I hope this will give a little bit extra information.</div><div>I keep searching for the solution myself further.</div><div><br></div><div>Greeting,<br></div><span style="font-size:10px"><br /><br />Edited by R-S - 04 Jan 19 at 8:51AM</span>]]>
   </description>
   <pubDate>Fri, 04 Jan 2019 08:37:52 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/problem-with-signing-a-pdf_topic3657_post14552.html#14552</guid>
  </item> 
  <item>
   <title><![CDATA[Problem with signing a PDF : Hi Rens,the described error is...]]></title>
   <link>http://www.quickpdf.org/forum/problem-with-signing-a-pdf_topic3657_post14549.html#14549</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 3657<br /><strong>Posted:</strong> 03 Jan 19 at 8:13PM<br /><br />Hi Rens,<br><br>the described error is a very common one - reasons could be many for it...<br>Some things you should think over:<br>Which is your development-ID/...language?<br>How strings are handled inside?<br>String-handling in QuickPDF is always in unicode-format.<br>QuickPDF comes along as dll- and activex-version - which one you're using?<br>32- or 64-bit... system32- or syswow64-path...?<br>and so on... a lot to do for you first... Sorry ;-)<br>The online-reference, developer-guide and samples you've already found?<br><br>Cheers and welcome here,<br>Ingo<br><br><span style="font-size:10px"><br /><br />Edited by Ingo - 03 Jan 19 at 8:13PM</span>]]>
   </description>
   <pubDate>Thu, 03 Jan 2019 20:13:16 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/problem-with-signing-a-pdf_topic3657_post14549.html#14549</guid>
  </item> 
  <item>
   <title><![CDATA[Problem with signing a PDF : hey all,I&amp;#039;m currently busy...]]></title>
   <link>http://www.quickpdf.org/forum/problem-with-signing-a-pdf_topic3657_post14547.html#14547</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=3090">R-S</a><br /><strong>Subject:</strong> 3657<br /><strong>Posted:</strong> 03 Jan 19 at 9:42AM<br /><br /><div>hey all,</div><div>I'm currently busy with figuring out how to sign a pdf.</div><div>I first convert a document type to pdf and then will try to sign the file with a pfx file.</div><div><br></div>public override string&#091;&#093; Convert(string&#091;&#093; bitmaps)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string filename = CoState.CreateWorkingFilename();<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; using (mGenerator = new PDFProcessor())<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PrepareGenerator();<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mGenerator.NewPages(bitmaps.Length - 1);<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mPageId = 1;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ProcessPages(bitmaps);<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mGenerator.SaveToFile(filename);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SignPFD(filename);<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return new string&#091;&#093; { filename };<br><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</div><div>public void SignPFD(string filename)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int temp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; temp = mGenerator.SignFile(filename, "", "Tempfield", "C", "Certificate.pfx", "PASSWORD", "j", "i", "z");<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.Console.Write(temp + "signfile output \n");<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</div><div>but i get a Error:<br></div><div>&nbsp;&nbsp;&nbsp; Exception thrown: 'System.AccessViolationException'</div><div>&nbsp;&nbsp;&nbsp; An unhandled exception of type 'System.AccessViolationException'</div><div>&nbsp;&nbsp;&nbsp; Attempted to read or write protected memory. This is often an indication that other memory is corrupt.<br></div><div> when the programs tries to run the code SignFile.</div><div>Am i overlooking something?</div><div><br></div><div>PS. all the other things do work. The problems is only with signing the file</div><div><br></div><div>EDIT:</div><div>i have also tried another approach:</div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mGenerator.DrawText(100, 700, "This is the file to be signed");<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mGenerator.SaveToFile("TheUnsignedFile.pdf");<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int SignProcessID = mGenerator.NewSignProcessFromFile("TheUnsignedFile.pdf", "");<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (SignProcessID &gt; 0) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mGenerator.SetSignProcessPFXFromFile(SignProcessID, "Certificate.pfx", "PASSWORD");<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mGenerator.SetSignProcessInfo(SignProcessID, "To test digital signatures", "The World", "Contact me");<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mGenerator.SetSignProcessField(SignProcessID, "Contract Signature");<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mGenerator.SetSignProcessFieldBounds(SignProcessID, 100, 600, 200, 100);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mGenerator.SetSignProcessFieldImageFromFile(SignProcessID, "visualsignature.jpg", 0);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mGenerator.EndSignProcessToFile(SignProcessID, "TheSignedFile.pdf");<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</div><div>but i get the same Error at the function EndSignProcessToFile.</div><span style="font-size:10px"><br /><br />Edited by R-S - 03 Jan 19 at 12:51PM</span>]]>
   </description>
   <pubDate>Thu, 03 Jan 2019 09:42:04 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/problem-with-signing-a-pdf_topic3657_post14547.html#14547</guid>
  </item> 
 </channel>
</rss>