<?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 : LoadFromCanvasDC Question</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 : LoadFromCanvasDC Question]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 05 Apr 2026 00:22:57 +0000</pubDate>
  <lastBuildDate>Thu, 22 Oct 2009 07:01:47 +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=1251</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[LoadFromCanvasDC Question : There is an other way.  First...]]></title>
   <link>http://www.quickpdf.org/forum/loadfromcanvasdc-question_topic1251_post5735.html#5735</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=129">DELBEKE</a><br /><strong>Subject:</strong> 1251<br /><strong>Posted:</strong> 22 Oct 09 at 7:01AM<br /><br /><P>There is an other way. </P><DIV>First you draw in an enhance metafile and save it to an emf file. Then you load the emf file with Qp.AddImageFromFile. Then, you can draw the image with Qp.DrawImage anywhere in your current document.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 22 Oct 2009 07:01:47 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/loadfromcanvasdc-question_topic1251_post5735.html#5735</guid>
  </item> 
  <item>
   <title><![CDATA[LoadFromCanvasDC Question : Hey Delbeke, thanks for the reply....]]></title>
   <link>http://www.quickpdf.org/forum/loadfromcanvasdc-question_topic1251_post5733.html#5733</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1178">Syllus</a><br /><strong>Subject:</strong> 1251<br /><strong>Posted:</strong> 21 Oct 09 at 3:08PM<br /><br />Hey Delbeke, thanks for the reply.&nbsp; Yes I am already doing this... I am currently using GetCanvasDC to create a DC which i then pass along to be drawn on by the win32 drawing commands of our other application, once that is done I use LoadFromCanvasDC... what I was expecting based on the other post I read was for that drawing to be then be loaded in as an image. <DIV></DIV><DIV><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Quote" alt="Quote" style="vertical-align: text-bottom;" /> At this momment , you have a handle on a loaded image you can draw anywhere in the pdf</td></tr></table></DIV><DIV>However the questions arose once I realized that this was not the case and that it was in fact creating a new document.&nbsp; It appeared at first as though it were replacing my old document. (this was before I realized that multiple documents could exist within a single instance of the PDFLib), once I realized that I started looking at the document management methods and experimenting with Doc merging, and page capturing, which seems to be working quite well at the moment.</DIV><DIV>&nbsp;</DIV><DIV>It is looking like this library may be very well suited for our needs, another day of testing should show for sure.</DIV><DIV>&nbsp;</DIV><DIV>Thanks :)</DIV><span style="font-size:10px"><br /><br />Edited by Syllus - 21 Oct 09 at 3:28PM</span>]]>
   </description>
   <pubDate>Wed, 21 Oct 2009 15:08:56 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/loadfromcanvasdc-question_topic1251_post5733.html#5733</guid>
  </item> 
  <item>
   <title><![CDATA[LoadFromCanvasDC Question : Hi Syllus, welcome here   Found...]]></title>
   <link>http://www.quickpdf.org/forum/loadfromcanvasdc-question_topic1251_post5729.html#5729</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=129">DELBEKE</a><br /><strong>Subject:</strong> 1251<br /><strong>Posted:</strong> 21 Oct 09 at 9:56AM<br /><br />Hi Syllus, welcome here <DIV>&nbsp;</DIV><DIV>Found in the help</DIV><DIV>&nbsp;</DIV><BLOCKQUOTE style="MARGIN-RIGHT: 0px" dir=ltr><DIV><H1>GetCanvasDC</H1><P ="grpl"><a href="http://www.quickpdflibrary.com/help/quickpdf/VectorGraphics.php" target="_blank"><U>Vector graphics</U></A>, <a href="http://www.quickpdflibrary.com/help/quickpdf/&#068;ocumentManagement.php" target="_blank"><U>Document management</U></A></P><H2>Version history</H2><P ="fnp">This function was introduced in Quick PDF Library version 7.14.</P><H2>Description</H2><P ="fnp">Creates a canvas of the specified size and returns a Windows device context DC that can be drawn on using Win32 drawing commands. When drawing operations are complete, call the <a href="http://www.quickpdflibrary.com/help/quickpdf/LoadFromCanvasDC.php" target="_blank"><U>LoadFromCanvasDC</U></A> function to create a new document from the supplied drawing commands.</P><P ="fnp">The value is returned as a signed integer but should be cast to an unsigned integer HDC</P></DIV></BLOCKQUOTE><DIV dir=ltr>&nbsp;</DIV><DIV dir=ltr>Debenu is actualy working around this functions and the next release will have enhancements.</DIV><span style="font-size:10px"><br /><br />Edited by DELBEKE - 21 Oct 09 at 10:00AM</span>]]>
   </description>
   <pubDate>Wed, 21 Oct 2009 09:56:27 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/loadfromcanvasdc-question_topic1251_post5729.html#5729</guid>
  </item> 
  <item>
   <title><![CDATA[LoadFromCanvasDC Question : Ok, quick update, after some more...]]></title>
   <link>http://www.quickpdf.org/forum/loadfromcanvasdc-question_topic1251_post5726.html#5726</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1178">Syllus</a><br /><strong>Subject:</strong> 1251<br /><strong>Posted:</strong> 20 Oct 09 at 11:31PM<br /><br />Ok, quick update,&nbsp; after some more experimentation I found that by using the LoadFromCanvasDC() method it was actually adding a 2nd document to the instance of the PDF Library, by simply keeping a handle on the originl document I could then merge the 2nd document (drawing from the DC) and then capture the page, then i could use the DrawCapturedPage() method to draw the dc image where ever I wanted on the main document. (which was now the only document as the 2nd one was deleted as a by-product of the earlier operations).&nbsp; I do not know if this is the intended method for this type of procedure, it is just what I have found that works so far...&nbsp; <DIV>&nbsp;</DIV><DIV>If there is a better way to bring in an image from a device context that was drawn directly to the DC by GDI commands, any nudges in the right direction are greatly appreciated.&nbsp; </DIV><DIV>&nbsp;</DIV><DIV>Again, thanks in advance. </DIV>]]>
   </description>
   <pubDate>Tue, 20 Oct 2009 23:31:57 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/loadfromcanvasdc-question_topic1251_post5726.html#5726</guid>
  </item> 
  <item>
   <title><![CDATA[LoadFromCanvasDC Question : I am trying to create a HDC that...]]></title>
   <link>http://www.quickpdf.org/forum/loadfromcanvasdc-question_topic1251_post5724.html#5724</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1178">Syllus</a><br /><strong>Subject:</strong> 1251<br /><strong>Posted:</strong> 20 Oct 09 at 7:08PM<br /><br />I am trying to create a HDC that can then have an image drawn on it through GDI commands (from one of our other applications) then pull that in as an image to be placed into a pdf creted with QuickPDF.&nbsp; I saw <a href="http://www.quickpdf.org/forum/metafile-problem_topic1135_post5278.html?KW=loadfromcanvasdc#5278" target="_blank">this post</A>&nbsp;where it was stated that the OP could use GetCanvasDC to get a DC handle, then use PlayEnhMetafile to draw a metafile's contents onto it, then use LoadFromCanvasDC to obtain a handle to a loaded image that could then be placed onto the PDF where ever needed.<DIV></DIV><DIV>&nbsp;</DIV><DIV>This is the exact type of functionality I need with the exception of , I would use our drawing routines to draw the image to the DC instead of playing back a metafile.&nbsp; What I do not understand, is how you get a loaded image from LoadFromCanvasDC(), or more specifically, a handle to a loaded image.&nbsp; All that&nbsp;the actual LoadFromCanvasDC function seems to&nbsp;return is an integer representing a&nbsp;success or failure (0 or 1).&nbsp; If this is in fact an accurate statement about obtaining a loaded image from LoadFromCanvasDC, and having a handle to it that can be used to draw it throughout the PDF, could anyone please explain to me how you get the loaded image and said&nbsp;handle?&nbsp;</DIV><DIV><BR>Currently whenever I try to make a call to LoadFromCanvasDC it seems like it recreates the whole PDF DOC as that image instead of giving me any kind of usable image that can then be&nbsp;placed.&nbsp; As in, the entire PDF document then takes on the size and dimensions of the created DC during GetCanvasDC.</DIV><DIV>&nbsp;</DIV><DIV>And of course if this is not the correct method to do something like this, any advice / nudge in the right direction would be greatly appreciated.&nbsp; </DIV><DIV>&nbsp;</DIV><DIV>Thanks in advance.</DIV>]]>
   </description>
   <pubDate>Tue, 20 Oct 2009 19:08:13 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/loadfromcanvasdc-question_topic1251_post5724.html#5724</guid>
  </item> 
 </channel>
</rss>