Frequently Asked Question:
Device Context & StartPage()
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?
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.