<?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 : PageCount not working</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 : PageCount not working]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 19:58:56 +0000</pubDate>
  <lastBuildDate>Wed, 15 Dec 2010 13:00: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=1679</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[PageCount not working : Thanks for sharing. Useful tip....]]></title>
   <link>http://www.quickpdf.org/forum/pagecount-not-working_topic1679_post7362.html#7362</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1000">Rowan</a><br /><strong>Subject:</strong> 1679<br /><strong>Posted:</strong> 15 Dec 10 at 1:00PM<br /><br />Thanks for sharing. Useful tip.]]>
   </description>
   <pubDate>Wed, 15 Dec 2010 13:00:19 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/pagecount-not-working_topic1679_post7362.html#7362</guid>
  </item> 
  <item>
   <title><![CDATA[PageCount not working : I have found the problem. The...]]></title>
   <link>http://www.quickpdf.org/forum/pagecount-not-working_topic1679_post7356.html#7356</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1490">pmaltais</a><br /><strong>Subject:</strong> 1679<br /><strong>Posted:</strong> 14 Dec 10 at 8:54PM<br /><br />I have found the problem. The Stream must be repositionned to its beginning. I added the line<div><br></div><div>oDocument.fileStream.Seek(0, soFromBeginning);</div><div><br></div><div>just before the LoadFromStream call and it works perfectly.</div><div><br></div><div>Thanks</div>]]>
   </description>
   <pubDate>Tue, 14 Dec 2010 20:54:22 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/pagecount-not-working_topic1679_post7356.html#7356</guid>
  </item> 
  <item>
   <title><![CDATA[PageCount not working :  Hi,I load PDF documents wich...]]></title>
   <link>http://www.quickpdf.org/forum/pagecount-not-working_topic1679_post7355.html#7355</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1490">pmaltais</a><br /><strong>Subject:</strong> 1679<br /><strong>Posted:</strong> 14 Dec 10 at 8:00PM<br /><br />Hi,<div><br></div><div>I load PDF documents wich contain more than one page. PageCount always returns 1. I'm using LoadFromStream. What am I missing?</div><div><br></div><div>Note that further in the code I display the document in a PDF Viewer and the document is perfectly displayed.&nbsp;</div><div><br></div><div>Here is my code listing:</div><div><br></div><div>// oDocument is a business object containing the PDF stream and other data related to it...</div><div><div>&nbsp;&nbsp;try</div><div>&nbsp;&nbsp; &nbsp;sLicence := 'my_reg_key';</div><div>&nbsp;&nbsp; &nbsp;myPDFLibCtrl := TQuickPDF0722.Create();</div><div>&nbsp;&nbsp; &nbsp;if (myPDFLibCtrl.UnlockKey(sLicence) = 1) then</div><div>&nbsp;&nbsp; &nbsp;begin</div><div>&nbsp;&nbsp; &nbsp; &nbsp;myPDFLibCtrl.LoadFromStream(oDocument.fileStream);</div><div>&nbsp;&nbsp; &nbsp; &nbsp;oDocument.numberOfPages := myPDFLibCtrl.PageCount;</div><div>&nbsp;&nbsp; &nbsp; &nbsp;Result := SaveNewDocument(oDocument);</div><div>&nbsp;&nbsp; &nbsp;end</div><div>&nbsp;&nbsp; &nbsp;else</div><div>&nbsp;&nbsp; &nbsp;begin</div><div>&nbsp;&nbsp; &nbsp; &nbsp;ShowMessage('Quick PDF Library: Invalid licence.');</div><div>&nbsp;&nbsp; &nbsp;end;</div><div>&nbsp;&nbsp;finally</div><div>&nbsp;&nbsp; &nbsp;if Assigned(myPDFLibCtrl) then</div><div>&nbsp;&nbsp; &nbsp;begin</div><div>&nbsp;&nbsp; &nbsp; &nbsp;myPDFLibCtrl.Free();</div><div>&nbsp;&nbsp; &nbsp; &nbsp;myPDFLibCtrl := nil;</div><div>&nbsp;&nbsp; &nbsp;end;</div><div>&nbsp;&nbsp;end;</div></div><div><br></div><div><br></div><div><br></div><div>Thanks for your help.</div><div><br></div><div>Patrick Maltais, programmer</div><span style="font-size:10px"><br /><br />Edited by Ingo - 15 Dec 10 at 8:05AM</span>]]>
   </description>
   <pubDate>Tue, 14 Dec 2010 20:00:54 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/pagecount-not-working_topic1679_post7355.html#7355</guid>
  </item> 
 </channel>
</rss>