<?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 example needed</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 example needed]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 03 Jul 2026 06:16:45 +0000</pubDate>
  <lastBuildDate>Tue, 30 Jun 2009 15:02:35 +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=1036</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 example needed : //set orgin at the upper left...]]></title>
   <link>http://www.quickpdf.org/forum/renderpagetodc-example-needed_topic1036_post5230.html#5230</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=129">DELBEKE</a><br /><strong>Subject:</strong> 1036<br /><strong>Posted:</strong> 30 Jun 09 at 3:02PM<br /><br /><DIV>//set orgin at the upper left corner</DIV><DIV>Qp.SetOrigin(1);</DIV><DIV>//load image from a stream</DIV><DIV>//&nbsp;&nbsp; option can specify the page number if the image is a multi-page, 0 otherwhise</DIV><DIV>Id = Qp.AddImageFromStream(MyStream, Option);</DIV><DIV>//select the image</DIV><DIV>Qp.SelectImage(Id);</DIV><DIV>//draw the image </DIV><DIV>Qp.DrawImage(10,10,100,100);</DIV><DIV>&nbsp;</DIV><span style="font-size:10px"><br /><br />Edited by DELBEKE - 30 Jun 09 at 3:03PM</span>]]>
   </description>
   <pubDate>Tue, 30 Jun 2009 15:02:35 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/renderpagetodc-example-needed_topic1036_post5230.html#5230</guid>
  </item> 
  <item>
   <title><![CDATA[RenderpagetoDC example needed : Ingo,  thanks but I am looking...]]></title>
   <link>http://www.quickpdf.org/forum/renderpagetodc-example-needed_topic1036_post5227.html#5227</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1103">RhoTu</a><br /><strong>Subject:</strong> 1036<br /><strong>Posted:</strong> 30 Jun 09 at 2:43PM<br /><br />Ingo,<DIV>&nbsp;</DIV><DIV>thanks but I am looking for the opposite example.&nbsp; Take the TImage canvas and write it to the QPdoc.</DIV><DIV>&nbsp;</DIV><DIV>I guess:</DIV><DIV>&nbsp;&nbsp;image1.Picture.Bitmap.SaveToStream();<BR>&nbsp;&nbsp;qp.loadFromStream</DIV><DIV>&nbsp; ...</DIV><DIV>&nbsp;</DIV><DIV>didn't want to start a new subject since this was on point.&nbsp; I always use forums by clicking on</DIV><DIV>'New Messages' or 'Unread Messages'.</DIV><DIV>&nbsp;</DIV><DIV>TIA</DIV><DIV>&nbsp;</DIV><DIV>RT</DIV>]]>
   </description>
   <pubDate>Tue, 30 Jun 2009 14:43:44 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/renderpagetodc-example-needed_topic1036_post5227.html#5227</guid>
  </item> 
  <item>
   <title><![CDATA[RenderpagetoDC example needed : Hi Rho!   If you want to do...]]></title>
   <link>http://www.quickpdf.org/forum/renderpagetodc-example-needed_topic1036_post5225.html#5225</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 1036<br /><strong>Posted:</strong> 30 Jun 09 at 6:45AM<br /><br />Hi Rho! <DIV>&nbsp;</DIV><DIV>If you want to do it the other way round you should do a new post 'cause in this case now nobody will find this answer here if he's searching for the same and see the original headline but anyway...</DIV><DIV>BTW: In the sample section here there are samples for what you need!</DIV><DIV>&nbsp;</DIV><DIV>Here's a code snippet for you:</DIV><DIV>&nbsp;&nbsp; QP&nbsp; := TDQuickPDF.Create;<BR>&nbsp;&nbsp; try<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.UnlockKey('MyKey');<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.LoadFromFile(Edit1.Text);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If ( QP.Encrypted &gt; 0 ) Then&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.Unencrypt;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.CombineLayers;<BR>//&nbsp;&nbsp;&nbsp; 0 = BMP / 1 = jpg / 3 = EMF / 4 = EPS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Test_Stream := Tmemorystream.Create;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.RenderPageToStream(72,1,1,test_stream,1,0);<BR>&nbsp;&nbsp; finally<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.Free;&nbsp; <BR>&nbsp;&nbsp; end;</DIV><DIV>&nbsp;&nbsp; test_stream.Seek(0,0);<BR>&nbsp;&nbsp; jpg := TJpegImage.create;<BR>&nbsp;&nbsp; jpg.LoadFromStream (test_stream);</DIV><DIV>&nbsp;&nbsp; Form1.Image1.Picture.Assign(jpg);</DIV><DIV>&nbsp;&nbsp; Form1.Show;<BR>&nbsp;&nbsp; test_stream.Clear;<BR>&nbsp;&nbsp; jpg.Destroy;</DIV><DIV><BR>&nbsp;</DIV><DIV>Cheers, Ingo</DIV><span style="font-size:10px"><br /><br />Edited by Ingo - 30 Jun 09 at 6:48AM</span>]]>
   </description>
   <pubDate>Tue, 30 Jun 2009 06:45:49 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/renderpagetodc-example-needed_topic1036_post5225.html#5225</guid>
  </item> 
  <item>
   <title><![CDATA[RenderpagetoDC example needed : I would like to do the opposite....]]></title>
   <link>http://www.quickpdf.org/forum/renderpagetodc-example-needed_topic1036_post5221.html#5221</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1103">RhoTu</a><br /><strong>Subject:</strong> 1036<br /><strong>Posted:</strong> 29 Jun 09 at 10:40PM<br /><br />I would like to do the opposite.&nbsp; I have a Delphi&nbsp;app that has drawn on an image and I would like that to be rendered/copied to a QP document.&nbsp; Any examples as to proc/func calls?<DIV>&nbsp;</DIV><DIV>TIA</DIV><DIV>&nbsp;</DIV><DIV>RT</DIV>]]>
   </description>
   <pubDate>Mon, 29 Jun 2009 22:40:40 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/renderpagetodc-example-needed_topic1036_post5221.html#5221</guid>
  </item> 
  <item>
   <title><![CDATA[RenderpagetoDC example needed : Hi Roger,  You are using a TPanel.Handle...]]></title>
   <link>http://www.quickpdf.org/forum/renderpagetodc-example-needed_topic1036_post4906.html#4906</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1000">Rowan</a><br /><strong>Subject:</strong> 1036<br /><strong>Posted:</strong> 25 Mar 09 at 12:57AM<br /><br />Hi Roger,<br /><br />You are using a TPanel.Handle property, which is a HWND handle, but a HDC handle is required instead. You should try using something like TBitmap.Canvas.Handle or<br />TPaintBox.Canvas.Handle.<br /><br />I hope this helps.<br /><br />Cheers,<br />Rowan]]>
   </description>
   <pubDate>Wed, 25 Mar 2009 00:57:40 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/renderpagetodc-example-needed_topic1036_post4906.html#4906</guid>
  </item> 
  <item>
   <title><![CDATA[RenderpagetoDC example needed : Hi Roger!This is the function:RenderPageToDC(DPI,...]]></title>
   <link>http://www.quickpdf.org/forum/renderpagetodc-example-needed_topic1036_post4884.html#4884</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 1036<br /><strong>Posted:</strong> 19 Mar 09 at 7:45AM<br /><br />Hi Roger!<br><br>This is the function:<br>RenderPageToDC(DPI, Page, DC: Integer)<br>I don't know anything about this function (it's a new one) but if you're using value "1" for dpi this should be too less ;-)<br>As dpi you should try 72, 150 or up to 300.<br><br>Cheers, Ingo<br>&nbsp;<br>]]>
   </description>
   <pubDate>Thu, 19 Mar 2009 07:45:53 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/renderpagetodc-example-needed_topic1036_post4884.html#4884</guid>
  </item> 
  <item>
   <title><![CDATA[RenderpagetoDC example needed : could someone please show an example...]]></title>
   <link>http://www.quickpdf.org/forum/renderpagetodc-example-needed_topic1036_post4882.html#4882</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=180">rogerad</a><br /><strong>Subject:</strong> 1036<br /><strong>Posted:</strong> 19 Mar 09 at 6:43AM<br /><br />could someone please show an example using renderpagetodc<br><br>i am using a tpanel and DELPHI 6<br>&nbsp;when i assigned the handle to tpanel nothing appeared<br>&nbsp;here was my code<br><br>hand := panel1.handle;<br>qpbook.RenderPagetodc(1,1,hand );<br><br><br>i am trying to see the 1st page of the pdf<br>]]>
   </description>
   <pubDate>Thu, 19 Mar 2009 06:43:22 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/renderpagetodc-example-needed_topic1036_post4882.html#4882</guid>
  </item> 
 </channel>
</rss>