<?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 : Detecting Invalid Password?</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 : Detecting Invalid Password?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 05 Apr 2026 19:07:50 +0000</pubDate>
  <lastBuildDate>Mon, 23 Jul 2012 07:54: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=2340</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[Detecting Invalid Password? : LoadFromFile should return &amp;#034;2&amp;#034;...]]></title>
   <link>http://www.quickpdf.org/forum/detecting-invalid-password_topic2340_post9914.html#9914</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1483">AndrewC</a><br /><strong>Subject:</strong> 2340<br /><strong>Posted:</strong> 23 Jul 12 at 7:54AM<br /><br />LoadFromFile should return "2" if the password is incorrect in QPL 7.26. &nbsp;This used to be quite reliable in 7.xx and this logic was moved to QPL 8.xx where it now returns a 0 and LastErrorCode is set to 404 - InvalidPassword.<div><br></div><div>Does the PDF file have a User and Master password ? &nbsp;It could also depend on the PDF file itself. If the file has a blank user password but has a master password then the file will still open correctly with QP.SetAdvancePassword(''); &nbsp;- It could be that the renderer is having a problem rendering the file. &nbsp;Where does the Exception happen and what is the exception reporting ?</div><div><br></div><div>If you send me the PDF I will see if I can reproduce the Exception in QPL 8.xx. &nbsp;There have been many bugs and enhancements added to QPL 8.xx compared to 7.26.</div><div><br></div><div>Andrew.</div><div><br></div>]]>
   </description>
   <pubDate>Mon, 23 Jul 2012 07:54:33 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/detecting-invalid-password_topic2340_post9914.html#9914</guid>
  </item> 
  <item>
   <title><![CDATA[Detecting Invalid Password? : V8.x does not use SetAdvancePassword()....]]></title>
   <link>http://www.quickpdf.org/forum/detecting-invalid-password_topic2340_post9907.html#9907</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1887">ExchangeViews</a><br /><strong>Subject:</strong> 2340<br /><strong>Posted:</strong> 21 Jul 12 at 8:11AM<br /><br />V8.x does not use SetAdvancePassword(). You need to directly use loadfromfile('test.pdf', password);<br>Upgraded version return correct value for invalid password. You can try the trial version.<br>]]>
   </description>
   <pubDate>Sat, 21 Jul 2012 08:11:01 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/detecting-invalid-password_topic2340_post9907.html#9907</guid>
  </item> 
  <item>
   <title><![CDATA[Detecting Invalid Password? : Straight from the upgrade to 8...]]></title>
   <link>http://www.quickpdf.org/forum/detecting-invalid-password_topic2340_post9906.html#9906</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=121">Wheeley</a><br /><strong>Subject:</strong> 2340<br /><strong>Posted:</strong> 20 Jul 12 at 8:39PM<br /><br />Straight from the upgrade to 8 technical guide:<br><br>The LoadFrom* functions now return 1 on success and 0 on failure. In QPL v7 these functions would return 2 if an encrypted document made use of object streams or cross reference streams. This is no longer necessary as these functions have a new password parameter. If the wrong password is given, the LoadFrom* functions will return 0 and the LastErrorCode function will return error code 404.<br><br>Wheeley<br>]]>
   </description>
   <pubDate>Fri, 20 Jul 2012 20:39:41 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/detecting-invalid-password_topic2340_post9906.html#9906</guid>
  </item> 
  <item>
   <title><![CDATA[Detecting Invalid Password? :   I have no problem upgrading...]]></title>
   <link>http://www.quickpdf.org/forum/detecting-invalid-password_topic2340_post9905.html#9905</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=872">waynefulcher</a><br /><strong>Subject:</strong> 2340<br /><strong>Posted:</strong> 20 Jul 12 at 1:53PM<br /><br />I have no problem upgrading but are you saying 8.x will work differently than 7.26 as far as what I described?<div>Can you tell me what will be different in 8.x that would allow me to have a controlled test to see if the password is invalid?</div><div>Does RenderPageToStream() return somethig different? Does LoadFromFile() return something different?</div>]]>
   </description>
   <pubDate>Fri, 20 Jul 2012 13:53:36 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/detecting-invalid-password_topic2340_post9905.html#9905</guid>
  </item> 
  <item>
   <title><![CDATA[Detecting Invalid Password? : Use QuickPDF 8.xx.   ]]></title>
   <link>http://www.quickpdf.org/forum/detecting-invalid-password_topic2340_post9900.html#9900</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1887">ExchangeViews</a><br /><strong>Subject:</strong> 2340<br /><strong>Posted:</strong> 20 Jul 12 at 8:54AM<br /><br />Use QuickPDF 8.xx.]]>
   </description>
   <pubDate>Fri, 20 Jul 2012 08:54:03 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/detecting-invalid-password_topic2340_post9900.html#9900</guid>
  </item> 
  <item>
   <title><![CDATA[Detecting Invalid Password? :   I am using Delphi 7 and QuickPDF...]]></title>
   <link>http://www.quickpdf.org/forum/detecting-invalid-password_topic2340_post9895.html#9895</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=872">waynefulcher</a><br /><strong>Subject:</strong> 2340<br /><strong>Posted:</strong> 18 Jul 12 at 4:01PM<br /><br />I am using Delphi 7 and QuickPDF 7.26.<div>I have a program that allows the user to select a PDF file from disk and it gives them the option to input a password in case the PDF is secured.</div><div>&nbsp;</div><div>My program then calls SetAdvancePassword(), then LoadFromFile().</div><div>Then it loops for each page calling RenderPageToStream().</div><div>I then display the rendered image so the user can view each page.</div><div>All of this code works fine if...The PDF is not secured or the PDF is secured and the user has supplied the correct password.</div><div>&nbsp;</div><div>But if the PDF is secured and the user supplies an incorrect password, I can't seem to figure out how to "detect" that. The LoadFromFile() method works and returns a 1.</div><div>The RenderPageToStream() also returns a 1 and the LastRenderError is blank. So I have no way to detect it actually fails. The result is the rendered image is just a blank white image.</div><div>&nbsp;</div><div>The odd thing is when I run my program from the Delphi IDE, the call to RenderPageToStream() actually throws an exception message that shows up in the Delphi IDE but the QuickPDF library must be trapping that exception because I do not get an exception in my code. So once again I cant seem to figure out how to detect an invalid password.</div><div>&nbsp;</div><div>Any help would be much appriciated.</div><div>Wayne</div><div>&nbsp;</div>]]>
   </description>
   <pubDate>Wed, 18 Jul 2012 16:01:48 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/detecting-invalid-password_topic2340_post9895.html#9895</guid>
  </item> 
 </channel>
</rss>