<?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 : Signing a password protected document</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 : Sample Code : Signing a password protected document]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 11 May 2026 22:18:34 +0000</pubDate>
  <lastBuildDate>Fri, 26 Jul 2019 20:52: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=3728</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[Signing a password protected document : Hi Bigun,here&amp;#039;s a kb-document...]]></title>
   <link>http://www.quickpdf.org/forum/signing-a-password-protected-document_topic3728_post14869.html#14869</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 3728<br /><strong>Posted:</strong> 26 Jul 19 at 8:52PM<br /><br />Hi Bigun,<br><br>here's a kb-document from Debenu:<br>https://www.debenu.com/kb/add-visual-digital-signature-to-a-pdf-programmatically/<br><br>With this link you'll find interesting hints from Rowan:<br>http://www.quickpdf.org/forum/visible-digital-signature_topic2563.html<br><br>A quick read through the content lt me think that signing doesn't need a password?<br>If you simply rewrite the pdf the signature is broken and all readers are telling that the signature in the loaded pdf was broken...<br><br>]]>
   </description>
   <pubDate>Fri, 26 Jul 2019 20:52:33 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/signing-a-password-protected-document_topic3728_post14869.html#14869</guid>
  </item> 
  <item>
   <title><![CDATA[Signing a password protected document : Thank you for your answer Ingo,...]]></title>
   <link>http://www.quickpdf.org/forum/signing-a-password-protected-document_topic3728_post14867.html#14867</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=3134">Bigun</a><br /><strong>Subject:</strong> 3728<br /><strong>Posted:</strong> 26 Jul 19 at 8:49AM<br /><br />Thank you for your answer Ingo, but I'm afraid I'm already starting the signing process using it:<div><br></div><div><span style="white-space:pre">	</span>int SignProcessID= QP-&gt;NewSignProcessFromFile(sSourcePdf, sOwnerPassword);</div><div><span style="white-space:pre">	</span>...</div><div><br></div><div>If I decrypt SourcePdf as you suggest, the signature process goes well but I'm not able to Encrypt the resulting signed PDF, so I get a signed unprotected PDF:</div><div><br></div><div><span style="white-space:pre">	</span>int Permisos= QP-&gt;EncodePermissions(1, 0, 0, 0, 1, 1, 0, 1);</div><div><span style="white-space:pre">	</span>int iRes= QP-&gt;Encrypt(sPassOwner, "", Strength, Permisos);</div><div><span style="white-space:pre">	</span>QP-&gt;SetSignProcessPFXFromFile(SignProcessID, PFXFileName, PFXPassword);</div><div><span style="white-space:pre">	</span>...</div><div><span style="white-space:pre">	</span>QP-&gt;EndSignProcessToFile(SignProcessID, sOutput);&nbsp; // &lt;== should be signed and password protected</div><div>&nbsp;</div><div>On the other hand, if I don't decrypt it, the resulting file, though protected, does not get signed.</div><div><br></div><div>I'll keep trying. Thanks for your help!!</div><div></div>]]>
   </description>
   <pubDate>Fri, 26 Jul 2019 08:49:14 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/signing-a-password-protected-document_topic3728_post14867.html#14867</guid>
  </item> 
  <item>
   <title><![CDATA[Signing a password protected document : Hi Bigun,did you read the description...]]></title>
   <link>http://www.quickpdf.org/forum/signing-a-password-protected-document_topic3728_post14866.html#14866</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 3728<br /><strong>Posted:</strong> 24 Jul 19 at 8:33PM<br /><br />Hi Bigun,<br><br>did you read the description regarding NewSignProcessFromFile?<br>https://www.debenu.com/docs/pdf_library_reference/NewSignProcessFromFile.php<br>There you can read:<br>"...Creates a new digital signature process using a file as the <b>source</b> document...".<br>There is a password as parameter ;-)<br>If the password is protected the original owner wanted to protect it ;-)<br>If it's only the main password you can do it this way:<br>// ...<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.LoadFromFile(FileName, '');<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If QP.EncryptionStatus &gt; 0 Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.Decrypt;<br>// ...<br>then you can begin with your signing process.<br><br>Cheers and welcome here,<br>Ingo<br><br><br>]]>
   </description>
   <pubDate>Wed, 24 Jul 2019 20:33:46 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/signing-a-password-protected-document_topic3728_post14866.html#14866</guid>
  </item> 
  <item>
   <title><![CDATA[Signing a password protected document : Hi all,I&amp;#039;ve been required...]]></title>
   <link>http://www.quickpdf.org/forum/signing-a-password-protected-document_topic3728_post14865.html#14865</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=3134">Bigun</a><br /><strong>Subject:</strong> 3728<br /><strong>Posted:</strong> 24 Jul 19 at 12:25PM<br /><br />Hi all,<div>I've been required to digitally sign an already password protected document with no success.</div><div>I'm using QuickPdf v11.13. So far I can digitally sign unprotected PDFs, with or without images, with no problem. Basically:</div><blockquote style="margin: 0 0 0 40px; border: n&#111;ne; padding: 0px;"><div>-&nbsp;NewSignProcessFromFile(...)</div><div>-&nbsp;SetSignProcessPFXFromFile(...)</div><div>-&nbsp;SetSignProcessFieldBounds(...)</div><div>-&nbsp;SetSignProcessFieldImageFromFile(...)</div><div>-&nbsp;EndSignProcessToFile(SignedPdf)&nbsp; // SignedPdf= new signed PDF</div><div>res=&nbsp;GetSignProcessResult(...).&nbsp; // OK</div></blockquote><div><br></div><div>But the same process with a password protected PDF does not sign the resulting PDF. This protected PDF already has an empty signature field and has no constraints filling fields, signing...</div><div><br></div><div>The original protected PDF (password; owner) is</div><div>https://we.tl/t-x0JuwBxfqQ</div><div>The resulting not signed PDF is:</div><div>https://we.tl/t-uh06rFQf1r</div><div><br></div><div><div>Can anyone guide me or give me any hint?</div></div><div>Thank you very much</div><div><br></div>]]>
   </description>
   <pubDate>Wed, 24 Jul 2019 12:25:45 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/signing-a-password-protected-document_topic3728_post14865.html#14865</guid>
  </item> 
 </channel>
</rss>