Table Of Contents

Previous topic

viewer

Next topic

pdfState

This Page

phoenix_title pdfPrintout

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.


class_hierarchy Inheritance Diagram

Inheritance diagram for class pdfPrintout

Inheritance diagram of pdfPrintout


super_classes Known Superclasses

Printout


method_summary Methods Summary

__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

api Class API



class pdfPrintout(Printout)

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.


Methods



__init__(self, title, view)

Pass in the instance of dpViewer to be printed



GetPageInfo(self)

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.



HasPage(self, pageno)

Report whether pageno exists



OnPrintPage(self, page)

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



PrintDirect(self, page)

Provide the data for page by rendering the drawing commands to the printer DC using dcGraphicsContext



PrintViaBuffer(self, page)

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