<?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 : RenderPageToDC in thread</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 : RenderPageToDC in thread]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 02 May 2026 15:46:07 +0000</pubDate>
  <lastBuildDate>Sat, 20 Apr 2013 16:56:00 +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=2604</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[RenderPageToDC in thread : Hi everybody.  Two weeks ago...]]></title>
   <link>http://www.quickpdf.org/forum/renderpagetodc-in-thread_topic2604_post10743.html#10743</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2340">goobit</a><br /><strong>Subject:</strong> 2604<br /><strong>Posted:</strong> 20 Apr 13 at 4:56PM<br /><br /><p>Hi everybody.</p><p>Two weeks ago I post an issue with rendering in separate thread:&nbsp;</p><p><a href="https://quickpdf.fogbugz.com/default.asp?18390_auaga7jpi7kq2ihs" target="_blank">https://quickpdf.fogbugz.com/default.asp?18390_auaga7jpi7kq2ihs</a></p><p>Unfortunately it is leaved without response and I wonder is there anyone who could help me. I mean to at least to test this project on your environment and confirm that problem exists (it is also possible that I somehow incorrectly use the library but I not found any "thread" related topics except that it should work).</p><p>You can download test project from the issue attach (url above). Also I repeat a bug explanation:</p><p>I use TDebenuPDFLibrary in TThread execute for pages render. And<br> sometimes the result page is blank (when rendering runs in the main<br> thread all ok).<br><br> When page renders simply by call:<br><br>  <font face="Courier New, Courier, mono">&nbsp; RenderPageToDC(72, 1, Bitmap.Canvas.Handle);</font><br><br> then offen exception raises in TCanvas.GetHandle where Self = Nil (It<br> comes from TPDFPicasso.BeginPath where seems Canvas is Nil). But this<br> exception handles somewhere inside QuickPDF and RenderPageToDC just<br> returns 1 and blank bitmap. If this call wrap with this:<br><br>   <font face="Courier New, Courier, mono">&nbsp; Bitmap.Canvas.Lock;<br>&nbsp;  try<br>&nbsp;    &nbsp; . . .<br>&nbsp; finally<br>&nbsp;    &nbsp; Bitmap.Canvas.Unlock;<br>&nbsp; end;</font></p><p>exceptions not occurs but blank pages still exists (to increase a<br> chance to catch it just move the mouse cursor over main window; it<br> generates repaint calls in main thread that seems significant).</p><p><br></p>]]>
   </description>
   <pubDate>Sat, 20 Apr 2013 16:56:00 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/renderpagetodc-in-thread_topic2604_post10743.html#10743</guid>
  </item> 
 </channel>
</rss>