Do you own a Debenu Quick PDF Library 12/11/10/9/8/7? Upgrade to Debenu Quick PDF Library 13!

Foxit Quick PDF Library

Frequently Asked Question:

Return to FAQ Index

Device Context & StartPage()

Question

I am evaluating this library for purchase, and am running into a problem. The device context as returned by GetCanvasDC does not respond to calls to StartPage(). Since I am using this DC to re-use my print code, this is disconcerting. Is this a bug? If not, how can I force new pages?

Answer

It's not a bug. The device-context returned by GetCanvasDC is the handle of an instance of Delphi's TMetafileCanvas object. So unfortunately Quick PDF Library has limited ability to manipulate the DC and won't respond to calls to StartPage().

A work around would be for you to create your own device context in some manner that allows you to play it out to a metafile and manipulate it in that format and then use the EMF import facility to convert it to a PDF using Quick PDF Library.


© 2015 Debenu & Foxit. All rights reserved. AboutBuyContactBlogNewsletterSupportFAQProduct UpdatesForum