<?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 : Range Check Error when using RenderPageToDC</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 : Range Check Error when using RenderPageToDC]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 31 May 2026 19:57:51 +0000</pubDate>
  <lastBuildDate>Wed, 20 Oct 2010 14:28:25 +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=1567</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[Range Check Error when using RenderPageToDC : Hi Jason,Would you be able to...]]></title>
   <link>http://www.quickpdf.org/forum/range-check-error-when-using-renderpagetodc_topic1567_post7087.html#7087</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1000">Rowan</a><br /><strong>Subject:</strong> 1567<br /><strong>Posted:</strong> 20 Oct 10 at 2:28PM<br /><br />Hi Jason,<div><br></div><div>Would you be able to upload a sample document somewhere for us to download and also let us know what DPI you're rendering at?</div><div><br></div><div>I'd also recommend trying 7.22 beta 2 to see if you experience this issue:</div><div><br></div><div><a href="http://www.quickpdflibrary.com/blog/2010/10/quick-pdf-library-7-22-beta-2-released-includes-delphi-xe-support/" target="_blank">http://www.quickpdflibrary.com/blog/2010/10/quick-pdf-library-7-22-beta-2-released-includes-delphi-xe-support/</a></div><div><br></div><div>Cheers,</div><div>- Rowan.</div>]]>
   </description>
   <pubDate>Wed, 20 Oct 2010 14:28:25 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/range-check-error-when-using-renderpagetodc_topic1567_post7087.html#7087</guid>
  </item> 
  <item>
   <title><![CDATA[Range Check Error when using RenderPageToDC : I am receiving a &amp;#034;Range Check...]]></title>
   <link>http://www.quickpdf.org/forum/range-check-error-when-using-renderpagetodc_topic1567_post6951.html#6951</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1394">Jason</a><br /><strong>Subject:</strong> 1567<br /><strong>Posted:</strong> 09 Sep 10 at 8:28PM<br /><br /><P>I am receiving a "Range Check Error" when using the RenderPageToDC function.&nbsp; I am using Delphi 2007.&nbsp; The issue first manifested itself to me with QuickPDF library version 7.19 but is also a problem with version 7.21.</P><DIV>It occurs when I try to render pages from a multipage document as well as with single page documents.&nbsp; When rendering multipage documents, the range check error doesn't always occur on the same page.&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Any suggestions would be great.&nbsp; Here is my code.</DIV><DIV>&nbsp;</DIV><DIV><DIV></DIV><DIV></DIV><DIV></DIV>procedure TfrmPDFManager.GetPDFPreview(PDFFileName : String; DPI, PageNo : Integer);<BR>var<BR>&nbsp;&nbsp; PDFLibrary : TQuickPDF0721;<BR>&nbsp;&nbsp; UnlockResult : Integer;<BR>begin<BR>Screen.Cursor := crHourglass;<BR>Image1.Picture := nil;<BR>PDFLibrary := TQuickPDF0721.Create;<BR>try<BR>&nbsp;UnlockResult := PDFLibrary.UnlockKey(QUICKPDFLICENSEKEY);<BR>&nbsp;if UnlockResult = 1 then<BR>&nbsp;&nbsp;&nbsp; begin<BR>&nbsp;&nbsp;&nbsp; PDFLibrary.LoadFromFile(PDFFileName);<BR>&nbsp;&nbsp;&nbsp; Image1.Picture.Bitmap.Width := Round(PDFLibrary.PageWidth);<BR>&nbsp;&nbsp;&nbsp; Image1.Picture.Bitmap.Height := Round(PDFLibrary.PageHeight);<BR>&nbsp;&nbsp;&nbsp; PDFLibrary.SetOrigin(1); //--&gt; Added this line to&nbsp;try to solve&nbsp;Range Check Error, no change.<BR>&nbsp;&nbsp;&nbsp; PDFLibrary.RenderPageToDC(DPI, PageNo, Image1.Canvas.Handle); //--&gt;Range Check Error&nbsp;here<BR>&nbsp;&nbsp;&nbsp; PDFPAGES := PDFLibrary.PageCount;<BR>&nbsp;&nbsp;&nbsp; end;<BR>&nbsp;finally<BR>&nbsp;PDFLibrary.Free;<BR>&nbsp;end;<BR>Image1.Repaint;<BR>Screen.Cursor := crDefault;<BR>end;</DIV>]]>
   </description>
   <pubDate>Thu, 09 Sep 2010 20:28:14 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/range-check-error-when-using-renderpagetodc_topic1567_post6951.html#6951</guid>
  </item> 
 </channel>
</rss>