Class encapsulating the functionality of printing out the document. The methods below over-ride those of the base class and supply document-specific information to the printing framework that calls them internally.
__init__ | Pass in the instance of dpViewer to be printed |
GetPageInfo | Supply maximum range of pages and the range to be printed |
HasPage | Report whether pageno exists |
OnPrintPage | Provide the data for page by rendering the drawing commands |
PrintDirect | Provide the data for page by rendering the drawing commands |
PrintViaBuffer | Provide the data for page by drawing it as a bitmap to the printer DC |
Class encapsulating the functionality of printing out the document. The methods below over-ride those of the base class and supply document-specific information to the printing framework that calls them internally.
Pass in the instance of dpViewer to be printed
Supply maximum range of pages and the range to be printed These are initial values passed to Printer dialog, where they can be amended by user.
Report whether pageno exists
Provide the data for page by rendering the drawing commands to the printer DC using either Cairo (via a page buffer) or dcGraphicsContext depending on USE_PRINTDIRECT
Provide the data for page by rendering the drawing commands to the printer DC using dcGraphicsContext
Provide the data for page by drawing it as a bitmap to the printer DC sfac needs to provide a high enough resolution bitmap for printing that reduces anti-aliasing blur but be kept small to minimise printing time