<?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 : Problems with DecryptFile Function</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 : Problems with DecryptFile Function]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 16 Jul 2026 12:38:09 +0000</pubDate>
  <lastBuildDate>Sun, 20 Dec 2009 14:52:19 +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=1296</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[Problems with DecryptFile Function : Hi Ingo (and Michel):  Thank...]]></title>
   <link>http://www.quickpdf.org/forum/problems-with-decryptfile-function_topic1296_post5950.html#5950</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1140">Shotgun Tom</a><br /><strong>Subject:</strong> 1296<br /><strong>Posted:</strong> 20 Dec 09 at 2:52PM<br /><br />Hi Ingo (and Michel):<DIV>&nbsp;</DIV><DIV>Thank you for the reply, Ingo.&nbsp; Just to let you guy's know... I finally went to bed and slept for a few hours.&nbsp; Woke up and found out what I was doing wrong.&nbsp; It had to do with having the document open in a viewer in the same program I was working on.&nbsp; Sometimes sleep helps your brain <img src="http://www.quickpdf.org/forum/smileys/smiley29.gif" height="17" width="17" border="0" alt="Wacko" title="Wacko" /></DIV><DIV>&nbsp;</DIV><DIV>A very Merry Christmas and Happy New Year to you as well.&nbsp; Enjoy the holidays!</DIV><DIV>&nbsp;</DIV><DIV>Tom</DIV>]]>
   </description>
   <pubDate>Sun, 20 Dec 2009 14:52:19 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/problems-with-decryptfile-function_topic1296_post5950.html#5950</guid>
  </item> 
  <item>
   <title><![CDATA[Problems with DecryptFile Function : Hi Tom!We&amp;#039;re talking about...]]></title>
   <link>http://www.quickpdf.org/forum/problems-with-decryptfile-function_topic1296_post5949.html#5949</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 1296<br /><strong>Posted:</strong> 20 Dec 09 at 12:03PM<br /><br />Hi Tom!<br><br>We're talking about main and user passwords.<br>The user password is the one you have to insert while opening the pdf in a reader.<br>The main password the user won't see ... it's only to make the pdf-settings a little bit saver.<br>It's not possible to set only a user password. If the creator of a pdf determines a user- and not a main password the user password will be the main password, too.<br>There's no problem to analyze the structure of a pdf if there are user- and/or main-passwords.<br>If you want to decrypt AND SAVE a pdf which has a main- and a user-password it's okay to insert only the main-password.<br>If there's a user-password you can't do things like previews and textextractions without the user password... and i think that's good ;-)<br>This behavior doesn't belong only to the QuickPDF-sdk... that's normal for all libraries.<br><br>Cheers, Ingo<br><br>BTW: To all readers and writers here...<br>Merry Christmas and a Happy New Year 2010!<br><br><br>]]>
   </description>
   <pubDate>Sun, 20 Dec 2009 12:03:39 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/problems-with-decryptfile-function_topic1296_post5949.html#5949</guid>
  </item> 
  <item>
   <title><![CDATA[Problems with DecryptFile Function : Hi Michel:   Thank you for your...]]></title>
   <link>http://www.quickpdf.org/forum/problems-with-decryptfile-function_topic1296_post5948.html#5948</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1140">Shotgun Tom</a><br /><strong>Subject:</strong> 1296<br /><strong>Posted:</strong> 20 Dec 09 at 2:03AM<br /><br />Hi Michel: <DIV>&nbsp;</DIV><DIV>Thank you for your reply.&nbsp; I will try this code.</DIV><DIV>&nbsp;</DIV><DIV>However, many, many files are encrypted only with a User Password.&nbsp;&nbsp;In other words, there are no permission's&nbsp;encryption, just&nbsp;a password for the User. &nbsp;If I can't use the User password, how can I decrypt those successfully?</DIV><DIV>&nbsp;</DIV><DIV>Tom</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;BTW, I'm talking about permanently decrypting... that is... re-saving the file with no passwords, no security.</DIV><span style="font-size:10px"><br /><br />Edited by Shotgun Tom - 20 Dec 09 at 2:05AM</span>]]>
   </description>
   <pubDate>Sun, 20 Dec 2009 02:03:19 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/problems-with-decryptfile-function_topic1296_post5948.html#5948</guid>
  </item> 
  <item>
   <title><![CDATA[Problems with DecryptFile Function :  Actually, I have been using...]]></title>
   <link>http://www.quickpdf.org/forum/problems-with-decryptfile-function_topic1296_post5947.html#5947</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> 1296<br /><strong>Posted:</strong> 19 Dec 09 at 11:16PM<br /><br />Actually, I have been using this function (successfully) for the last 4 years. Here is my VB code.<br><br>Note: make sure you use the "Owner"&nbsp; password. It will definitely not work with the "User" password.<br><br> I hope it helps.<br><br><font color="#009900">'---------------------------------------------------------------------------------------<br>' Procedure : PDF_Decrypt_File<br>' DateTime&nbsp; : 11/26/2005 10:41<br>' Author&nbsp;&nbsp;&nbsp; : Michel_K17<br>' Purpose&nbsp;&nbsp; : This function will take an encrypted/locked PDF, and save it unencrypted.<br>'---------------------------------------------------------------------------------------<br>'<br></font>Private Function PDF_Decrypt_File(MyFile As String, pwd As String) As Boolean<br>&nbsp;&nbsp;&nbsp; <br><font color="#009900">&nbsp;&nbsp;&nbsp; ' Trap Errors<br></font>&nbsp;&nbsp;&nbsp; On Error GoTo Error_Handler<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br><font color="#009900">&nbsp;&nbsp;&nbsp; ' Remove the Extension<br></font>&nbsp;&nbsp;&nbsp; If Right$(MyFile, 4) = PDF Then MyFile = Left$(MyFile, Len(MyFile) - 4)<br>&nbsp;&nbsp;&nbsp; <br><font color="#009900">&nbsp;&nbsp;&nbsp; ' Rename the file to process to an intermediate file<br></font>&nbsp;&nbsp;&nbsp; Name MyFile &amp; PDF As MyFile &amp; "_D4W" &amp; PDF<br>&nbsp;&nbsp;&nbsp; <br><font color="#009900">&nbsp;&nbsp;&nbsp; ' Decrypt it<br></font>&nbsp;&nbsp;&nbsp; rtn = oPDF.DecryptFile(MyFile &amp; "_D4W" &amp; PDF, MyFile &amp; PDF, Decrypt(pwd, fUnicodeUser))<br>&nbsp;&nbsp;&nbsp; If rtn = 1 Then PDF_Decrypt_File = True<br>&nbsp;&nbsp;&nbsp; <br><font color="#009900">&nbsp;&nbsp;&nbsp; ' Delete the intermediate file<br></font>&nbsp;&nbsp;&nbsp; Kill MyFile &amp; "_D4W" &amp; PDF<br><br>&nbsp;&nbsp;&nbsp; Exit Function<br>&nbsp;&nbsp;&nbsp; <br>Error_Handler:<br><font color="#009900">&nbsp;&nbsp;&nbsp; ' An unexpected error occured. Log it. (MUST have this line first, or the Err object gets reset).<br></font>&nbsp;&nbsp;&nbsp; olog.LogError False, Err.Number, Err.Description, Err.LastDllError, "PDF_Decrypt_File"<br>&nbsp;&nbsp;&nbsp; <br>End Function<br>]]>
   </description>
   <pubDate>Sat, 19 Dec 2009 23:16:23 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/problems-with-decryptfile-function_topic1296_post5947.html#5947</guid>
  </item> 
  <item>
   <title><![CDATA[Problems with DecryptFile Function : I have spent the last two days...]]></title>
   <link>http://www.quickpdf.org/forum/problems-with-decryptfile-function_topic1296_post5946.html#5946</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1140">Shotgun Tom</a><br /><strong>Subject:</strong> 1296<br /><strong>Posted:</strong> 19 Dec 09 at 8:13PM<br /><br />I have spent the last two days trying to implement a decrypt file routine using, primarily, the QuickPDF DecryptFile function.&nbsp; <DIV>&nbsp;</DIV><DIV>The function looks like it works in that it returns a success&nbsp;code and actually writes the file... but there is no PDF reader on the planet that will open the file.&nbsp; I thought for sure it must something I was doing.&nbsp; I tried securing several different files... some with just a user password some with user and owner passwords... different levels of encryption.&nbsp; I set the security in Adobe Pro 9.2.</DIV><DIV>&nbsp;</DIV><DIV>Then I tried using Debenu's QuickPDF Tools.&nbsp; Lo and behold, the same thing.&nbsp; It writes the file but I can't open it in any PDF Reader... not Adobe, Acrobat, Fox-It, PCX View... they all give the same error.&nbsp; The file is corrupted.&nbsp; I assume that Debenu is using the DecryptFile routine in 7.17 which is what I've been dealing with.</DIV><DIV>&nbsp;</DIV><DIV>Anyone else run into this problem?&nbsp; Is this a known issue?</DIV><DIV>&nbsp;</DIV><DIV>Tom</DIV>]]>
   </description>
   <pubDate>Sat, 19 Dec 2009 20:13:48 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/problems-with-decryptfile-function_topic1296_post5946.html#5946</guid>
  </item> 
 </channel>
</rss>