# wx.lib.docview.DocPrintout¶

DocPrintout is a default wx.Printout that prints the first page of a document view.

## Class Hierarchy¶

Inheritance diagram for class DocPrintout:

## Known Superclasses¶

wx.Printout

## Methods Summary¶

 __init__ Constructor. GetPageInfo Indicates that the DocPrintout only has a single page. GetView Returns the DocPrintout’s view. HasPage Indicates that the DocPrintout only has a single page. OnPrintPage Prints the first page of the view.

## Class API¶

class DocPrintout(wx.Printout)

DocPrintout is a default wx.Printout that prints the first page of a document view.

### Methods¶

__init__(self, view, title="Printout")

Constructor.

GetPageInfo(self)

Indicates that the DocPrintout only has a single page.

GetView(self)

Returns the DocPrintout’s view.

HasPage(self, pageNum)

Indicates that the DocPrintout only has a single page.

OnPrintPage(self, page)

Prints the first page of the view.