<?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 : SaveToFile with signature</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 : SaveToFile with signature]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 23:55:37 +0000</pubDate>
  <lastBuildDate>Sun, 29 Mar 2015 13:05:45 +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=3054</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[SaveToFile with signature : I should add that the AppendToFile...]]></title>
   <link>http://www.quickpdf.org/forum/savetofile-with-signature_topic3054_post12416.html#12416</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1000">Rowan</a><br /><strong>Subject:</strong> 3054<br /><strong>Posted:</strong> 29 Mar 15 at 1:05PM<br /><br />I should add that the <a href="http://www.debenu.com/docs/pdf_library_reference/AppendToFile.php" target="_blank" rel="nofollow">AppendToFile</a> function has been added to the regular functions as well, so you can use it there too. I will update this in the developer guide.<div><br></div><div>As for the LoadFromFile - &gt; SaveToFile example, this re-writes the file. I presume when you do something similar in Adobe Reader / Acrobat it sees that it contains a digital signature and makes no changes to the document, just saves an identical copy of the file that was loaded. We're working at a lower level so the developer has to implement checks like that in their applications, in the same way that the developers of Adobe products do.</div><div><br></div><div>With regards to your other question, you need to use the AppendToFile function. That will do an incremental update. This will still invalidate the previous signature that was added to the document -- as the document has changed -- but it should not *break* the previous signature, which is the crucial point.</div><div><br><div><br></div><div><br></div></div>]]>
   </description>
   <pubDate>Sun, 29 Mar 2015 13:05:45 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/savetofile-with-signature_topic3054_post12416.html#12416</guid>
  </item> 
  <item>
   <title><![CDATA[SaveToFile with signature : btw.I re readDebenu Quick PDF...]]></title>
   <link>http://www.quickpdf.org/forum/savetofile-with-signature_topic3054_post12415.html#12415</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2557">mLipok</a><br /><strong>Subject:</strong> 3054<br /><strong>Posted:</strong> 26 Mar 15 at 8:47PM<br /><br />btw.&nbsp;<div>I re read</div><div>Debenu Quick PDF Library 11 Developer Guide.pdf</div><div><br></div><div>and here is explanation</div><div><br></div><div><div><i><b>Processing digitally signed PDF files</b></i></div><div><i>Any changes that you make to a PDF after it has been digitally signed will invalidate the digital</i></div><div><i>signature. PDF files that contain digital signatures must be incrementally updated -- meaning</i></div><div><i>that the contents of the PDF are updated without rewriting the entire file by way of appending</i></div><div><i>changes to the end of the file. If digitally signed PDF files are not updated this way then the</i></div><div><i>digital signature will not only be invalidated, but it will be completely broken too.</i></div><div><i><br></i></div><div><i>When using Debenu Quick PDF Library it’s important to note that the combination of</i></div><div><i>LoadFromFile and SaveToFile does not incrementally update the file. Instead it completely</i></div><div><i>rewrites the contents of the PDF and breaks the digital signature. If you’re working with a PDF</i></div><div><i>that has a digital signature and you do not want to break or remove the digital signature, then</i></div><div><i>you should not use the SaveToFile function.</i></div><div><i><br></i></div><div><i>If you need to modify a PDF that has been digitally signed then you should use the DAOpenFile</i></div><div><i>and DAAppendFile functions as the DAAppend function does incrementally update PDF files,</i></div><div><i>which means that the digital signature will be invalidated, but not broken.</i></div></div><div><i><br></i></div><div><i><br></i></div>]]>
   </description>
   <pubDate>Thu, 26 Mar 2015 20:47:18 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/savetofile-with-signature_topic3054_post12415.html#12415</guid>
  </item> 
  <item>
   <title><![CDATA[SaveToFile with signature : Honestly I have never used the...]]></title>
   <link>http://www.quickpdf.org/forum/savetofile-with-signature_topic3054_post12278.html#12278</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2557">mLipok</a><br /><strong>Subject:</strong> 3054<br /><strong>Posted:</strong> 26 Jan 15 at 3:53PM<br /><br />Honestly I have never used the option of signing PDF files in this library.<div>My previous answers were general in nature.</div><div><br></div><div>As for your last question, unfortunately I am not able to answer now.</div>]]>
   </description>
   <pubDate>Mon, 26 Jan 2015 15:53:08 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/savetofile-with-signature_topic3054_post12278.html#12278</guid>
  </item> 
  <item>
   <title><![CDATA[SaveToFile with signature : Thank you,mLipok.I have a new...]]></title>
   <link>http://www.quickpdf.org/forum/savetofile-with-signature_topic3054_post12277.html#12277</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2671">John Chen</a><br /><strong>Subject:</strong> 3054<br /><strong>Posted:</strong> 26 Jan 15 at 10:05AM<br /><br /><div>Thank you,mLipok.</div><div><br></div>I have a new question about signature. I have 3 way to try for signature.<div>The B.pdf file with signature1, then add new signature2 and save to c.pdf<div>(1).&nbsp;</div><div><b><span lang="EN-US" style="mso-bidi-font-size:  10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;mso-fareast-font-family:細明體;color:red;  mso-no-proof:yes">nSignProcessID =QP.NewSignProcessFromFile(L"C:\\TEST\\B.pdf",L"");</span></b></div><div><span style="font-family: Arial, sans-serif; ">............................</span></div><div><span style="font-family: Arial, sans-serif; ">QP.EndSignProcessToFile(nSignProcessID,L</span><span style="font-family: Arial, sans-serif; color: rgb163, 21, 21; ">"c:\\test\\C.pdf"</span><span style="font-family: Arial, sans-serif; ">);</span><span style="font-family: Arial, sans-serif; ">&nbsp; &nbsp;</span></div></div><div><span style="font-family: Arial, sans-serif; ">The signature1 and signature2 shown correct.</span></div><div><span style="font-family: Arial, sans-serif; ">(2).&nbsp;</span></div><div><b><span lang="EN-US" style="mso-bidi-font-size:  10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;mso-fareast-font-family:細明體;color:red;  mso-no-proof:yes">QP.LoadFromFile(L"c:\\TEST\\B.pdf",L"");</span></b></div><div><b><span lang="EN-US" style="mso-bidi-font-size:  10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;mso-fareast-font-family:細明體;color:red;  mso-no-proof:yes">std::string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FileString(QP.SaveToString());// save to string</span></b></div><div><b><span lang="EN-US" style="mso-bidi-font-size:  10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;mso-fareast-font-family:細明體;color:red;  mso-no-proof:yes">nSignProcessID =QP.NewSignProcessFromString(FileString,L"");</span></b></div><div><span style="font-family: Arial, sans-serif; ">QP.SetSignProcessPFXFromFile(nSignProcessID,swPFXFile,swPassword);</span></div><div><span style="font-family: Arial, sans-serif; ">...................</span></div><div><span style="font-family: Arial, sans-serif; ">QP.EndSignProcessToFile(nSignProcessID,L</span><span style="font-family: Arial, sans-serif; color: rgb163, 21, 21; ">"c:\\test\\C.pdf"</span><span style="font-family: Arial, sans-serif; ">);</span><span style="font-family: Arial, sans-serif; ">&nbsp; &nbsp;</span></div><div><span style="font-family: Arial, sans-serif; ">(3).</span></div><div><b><span lang="EN-US" style="mso-bidi-font-size:  10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;mso-fareast-font-family:細明體;color:red;  mso-no-proof:yes">QP.LoadFromFile(L"c:\\TEST\\B.pdf",L"");</span></b></div><div><b><span lang="EN-US" style="mso-bidi-font-size:  10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;mso-fareast-font-family:細明體;color:red;  mso-no-proof:yes">QP.SaveToFile(L"c:\\TEST\\tmp.pdf");</span></b></div><div><b><span lang="EN-US" style="mso-bidi-font-size:  10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;mso-fareast-font-family:細明體;color:red;  mso-no-proof:yes">nSignProcessID = QP.NewSignProcessFromFile(L"C:\\TEST\\tmp.pdf",L"");</span></b></div><div><span style="font-family: Arial, sans-serif; ">QP.SetSignProcessPFXFromFile(nSignProcessID,swPFXFile,swPassword);</span></div><div><span style="font-family: Arial, sans-serif; ">........................</span></div><div><span style="font-family: Arial, sans-serif; ">QP.EndSignProcessToFile(nSignProcessID,L</span><span style="font-family: Arial, sans-serif; color: rgb163, 21, 21; ">"c:\\test\\C.pdf"</span><span style="font-family: Arial, sans-serif; ">);</span><span style="font-family: Arial, sans-serif; ">&nbsp; &nbsp;</span></div><div><font face="Arial, sans-serif">The signature1 shown incorrect, the signature2 shown correct in 2,3.</font></div><div><span style="font-family: Arial, sans-serif; ">&nbsp;</span></div><div><font face="Arial, sans-serif">In (2),(3), save to file or string first, then signature process to save to c.pdf, the signature become incorrect.</font></div><div><font face="Arial, sans-serif">In (1), use signature process directly, the signature are correct.&nbsp;</font></div><div><font face="Arial, sans-serif">They are different in SaveToFile/SaveToString.</font></div><div><font face="Arial, sans-serif"><br></font></div><div><font face="Arial, sans-serif"><br></font></div><div><span style="font-family: Arial, sans-serif; "><br></span></div><div><span style="font-family: Arial, sans-serif; "><br></span></div>]]>
   </description>
   <pubDate>Mon, 26 Jan 2015 10:05:00 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/savetofile-with-signature_topic3054_post12277.html#12277</guid>
  </item> 
  <item>
   <title><![CDATA[SaveToFile with signature : When using Acrobat Reader, the...]]></title>
   <link>http://www.quickpdf.org/forum/savetofile-with-signature_topic3054_post12276.html#12276</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2557">mLipok</a><br /><strong>Subject:</strong> 3054<br /><strong>Posted:</strong> 25 Jan 15 at 1:14PM<br /><br /><span style="line-height: 16.7999992370605px;">When using Acrobat Reader, the option Save As, &nbsp;just make a copy of the same file (compare the contents in an editor HEX).</span><div style="line-height: 16.7999992370605px;"><br></div><div style="line-height: 16.7999992370605px;">When you open a PDF document using library functions QP.LoadFromFile then using&nbsp;<span style="line-height: 16.7999992370605px;">QP.</span><span style="line-height: 16.7999992370605px;">SaveToFile, you do not create a copy of this document. You create a new (different) document&nbsp;</span><span style="line-height: 16.7999992370605px;">(compare the contents in an editor HEX).</span></div><div style="line-height: 16.7999992370605px;"><span style="line-height: 16.7999992370605px;"><br></span></div><div style="line-height: 16.7999992370605px;">Because the contents of the file is changed, the message "Signature contains incorrect ...." is clear and correct.</div><span style="font-size:10px"><br /><br />Edited by mLipok - 25 Jan 15 at 1:15PM</span>]]>
   </description>
   <pubDate>Sun, 25 Jan 2015 13:14:25 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/savetofile-with-signature_topic3054_post12276.html#12276</guid>
  </item> 
  <item>
   <title><![CDATA[SaveToFile with signature : I didn&amp;#039;t change any thing,...]]></title>
   <link>http://www.quickpdf.org/forum/savetofile-with-signature_topic3054_post12275.html#12275</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2671">John Chen</a><br /><strong>Subject:</strong> 3054<br /><strong>Posted:</strong> 23 Jan 15 at 6:59AM<br /><br />I didn't change any thing, just LoadFromFile then&nbsp;<span style="text-align: left; : rgb251, 251, 253; ">SaveToFile. The signature shown "Error...". I used the Adobe reader to open same file, then "SaveAs" to other file, the signature seem fine.&nbsp;</span>]]>
   </description>
   <pubDate>Fri, 23 Jan 2015 06:59:51 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/savetofile-with-signature_topic3054_post12275.html#12275</guid>
  </item> 
  <item>
   <title><![CDATA[SaveToFile with signature : If you change anything in any...]]></title>
   <link>http://www.quickpdf.org/forum/savetofile-with-signature_topic3054_post12273.html#12273</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2557">mLipok</a><br /><strong>Subject:</strong> 3054<br /><strong>Posted:</strong> 23 Jan 15 at 4:05AM<br /><br /><span style="line-height: 16.7999992370605px;">If you change anything in any (not only PDF) signed file then signature always will show you similar message.</span><div style="line-height: 16.7999992370605px;">In another case, the signatures would be useless.</div>]]>
   </description>
   <pubDate>Fri, 23 Jan 2015 04:05:23 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/savetofile-with-signature_topic3054_post12273.html#12273</guid>
  </item> 
  <item>
   <title><![CDATA[SaveToFile with signature : Used QP.LoadFromFile(L&amp;#034;xxx.pdf&amp;#034;,L&amp;#034;&amp;#034;)...]]></title>
   <link>http://www.quickpdf.org/forum/savetofile-with-signature_topic3054_post12263.html#12263</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2671">John Chen</a><br /><strong>Subject:</strong> 3054<br /><strong>Posted:</strong> 21 Jan 15 at 3:31AM<br /><br /><div>Used QP.LoadFromFile(L"xxx.pdf",L"") to open pdf file with signature. Then used&nbsp;QP.SaveToFile(L"yyy.pdf") to save to different pdf file. The signature become "Signature contains incorrect....". How can I save as &nbsp;a pdf file with signature to different pdf file?&nbsp;</div>]]>
   </description>
   <pubDate>Wed, 21 Jan 2015 03:31:06 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/savetofile-with-signature_topic3054_post12263.html#12263</guid>
  </item> 
 </channel>
</rss>