<?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 : GetCanvasDC/LoadFromCanvasDC</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 : GetCanvasDC/LoadFromCanvasDC]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 23 Jun 2026 04:29:54 +0000</pubDate>
  <lastBuildDate>Wed, 02 Oct 2013 13:41:11 +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=2744</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[GetCanvasDC/LoadFromCanvasDC : Hi Andrew - thanks - not sure...]]></title>
   <link>http://www.quickpdf.org/forum/getcanvasdc-loadfromcanvasdc_topic2744_post11237.html#11237</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1532">HNRSoftware</a><br /><strong>Subject:</strong> 2744<br /><strong>Posted:</strong> 02 Oct 13 at 1:41PM<br /><br />Hi Andrew - thanks - not sure how I missed that.&nbsp; Like I said, the library does virtually everything I could want, but the trick is to select the right calls and use them correctly. - Howard<br>]]>
   </description>
   <pubDate>Wed, 02 Oct 2013 13:41:11 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/getcanvasdc-loadfromcanvasdc_topic2744_post11237.html#11237</guid>
  </item> 
  <item>
   <title><![CDATA[GetCanvasDC/LoadFromCanvasDC : One word,  NewPageFromCanvasDC.This...]]></title>
   <link>http://www.quickpdf.org/forum/getcanvasdc-loadfromcanvasdc_topic2744_post11236.html#11236</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1483">AndrewC</a><br /><strong>Subject:</strong> 2744<br /><strong>Posted:</strong> 02 Oct 13 at 1:35PM<br /><br />One word, &nbsp; &nbsp;<span style="line-height: 1.4;">NewPageFromCanvasDC.&nbsp;</span><div><br></div><div>This function is used to add subsequent pages to an existing document.</div><div><br></div><div>Also&nbsp;</div><div><br></div><div><a href="http://www.quickpdf.org/forum/metafile-to-pdf_topic2741.html" rel="nofollow">http://www.quickpdf.org/forum/metafile-to-pdf_topic2741.html</a><br><div><br></div><div><span style="line-height: 1.4;">Andrew.</span></div></div>]]>
   </description>
   <pubDate>Wed, 02 Oct 2013 13:35:40 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/getcanvasdc-loadfromcanvasdc_topic2744_post11236.html#11236</guid>
  </item> 
  <item>
   <title><![CDATA[GetCanvasDC/LoadFromCanvasDC : First an aside - After several...]]></title>
   <link>http://www.quickpdf.org/forum/getcanvasdc-loadfromcanvasdc_topic2744_post11227.html#11227</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1532">HNRSoftware</a><br /><strong>Subject:</strong> 2744<br /><strong>Posted:</strong> 01 Oct 13 at 2:32PM<br /><br />First an aside - After several years of using the Quick PDF library with Delphi, I have found extremely few bugs, and I have found that the library will do virtually anything that needs to be done with pdf files.&nbsp; The tricky part is discovering which calls to use and placing them in the proper sequence.....&nbsp; I have found that the Reference Help file is seldom wrong, but frequently doesn't say quite enough (READ EVERY WORD OF THE CALL HELP PAGE).&nbsp; The Developer Guide has much useful context, but not every task.&nbsp; The search feature on the forum is very useful in filling in the gaps.&nbsp; (Note - I am still using version 8 of the library).<br><br>The situation:&nbsp; I have 20 years of library code for Delphi that manipulates TCanvas and TCanvas-based components.&nbsp; Although QuickPDF has many functions that duplicate TCanvas operations, it would be useful to be able to treat a pdf page (conceptually) as a TCanvas, wrap some context around it and be able to alternately write/draw to a TImage and a sort of a "TPDFFilePage".<br><br>The GetCanvasDC/LoadFromCanvasDC pair of calls seem to be the tools I have to work with, and a surprisingly small amount of trial and error has them working successfully, including creating a page with TCanvas operations, and then using QuickPDF drawing operations afterwards.<br><br>The difficulty I am having is in the "big picture" - creating a pdf file of multiple pages, where each page is created with TCanvas operations, and it is the TCanvas-level code that decides it is time to move to a new page.<br><br>The confusing (to me) aspect of LoadFromCanvasDC is that it creates a "document" not a "page".&nbsp; As best as I can guess, the document can only consist of one "page", sized by setting a number of dots wide and tall (based on an implicit dots per inch) in the GetCanvasDC call, and turning it into explicit measurements which will wind up in the pdf file when this TCanvas is converted during the "LoadFromCanvasDC" call which uses an explicit DPI value.&nbsp; OK, I get this - makes sense. <br><br>The question for me is "What calls should I use to assemble this "document" of 1 page into a PDF file of multiple pages?"&nbsp; -- One approach would be to create a bunch of individual page pdf files and then join them together.&nbsp; <br><br>Just browsing the reference file comes up with "MergeDocument" which seems likely, but the Developer Guide example is oriented to multiple pdf files on disk rather than in memory.&nbsp; I may just not be seeing the proper example.&nbsp; Any suggestions on where to look?<br>]]>
   </description>
   <pubDate>Tue, 01 Oct 2013 14:32:22 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/getcanvasdc-loadfromcanvasdc_topic2744_post11227.html#11227</guid>
  </item> 
 </channel>
</rss>