<?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 : Emulating A Printer</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 : Emulating A Printer]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 02 Jul 2026 08:59:03 +0000</pubDate>
  <lastBuildDate>Fri, 13 Sep 2013 18:42:52 +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=2731</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[Emulating A Printer : Hi,I&amp;#039;m adding the ability...]]></title>
   <link>http://www.quickpdf.org/forum/emulating-a-printer_topic2731_post11184.html#11184</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2433">BirdGuy66</a><br /><strong>Subject:</strong> 2731<br /><strong>Posted:</strong> 13 Sep 13 at 6:42PM<br /><br />Hi,<br><br>I'm adding the ability to an application to output reports to PDF. Current that application only outputs to a printer using to standard GDI functions. To implement this, I've changed the printing code to create wrappers for the GDI Print API functions StartDoc, EndDoc, StartPage, EndPage. When printing to a to printer, the wrappers behave as expected but when outputting to a PDF file, they call QuickPDF library functions. The document is created but with only the first page. Here is the sequences of QuickPDF calls:<br><br><ol><li>QP.GetCanvasDC(10200, 13200);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // initialization</li><li>// GDI operations on Canvas DC for first page</li><li>QP.LoadFromCanvasDC(1200.0, 3);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // called on first EndPage invocation</li><li>// GDI operations on Canvas DC for second page</li><li>QP.NewPageFromCanvasDC(1200.0, 3);&nbsp; // called on subsequent EndPage invocation</li><li>QP.SaveToFile("Report.pdf");&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // called on EndDoc invocation </li></ol><p>I should note that the call to NewPageFromCanvasDC fails which leads me to believe this is the wrong sequence of functions or that I'm missing some function calls to do what I need to do.</p><p>Any ideas? Thanks,<br></p><p>- Rich<br></p>]]>
   </description>
   <pubDate>Fri, 13 Sep 2013 18:42:52 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/emulating-a-printer_topic2731_post11184.html#11184</guid>
  </item> 
 </channel>
</rss>