Package: mlreportgen.dom
Superclasses:
Page header definition for PDF document
Add a header to the first page of a section or to odd pages, even pages, or both.
creates an empty page
header based on the default PDF template.pdfHeader
= PDFPageHeader()
creates a page header for the specified type of page, that is, odd, even, or first,
based on the default PDF template.pdfHeaderer
= PDFPageHeader(pageType
)
creates a page header for the specified type of page based on the specified
template.PageHeader
= PDFPageHeader(pageType
,templatePath
)
creates a page header for the specified type of page, based on the specified document
part template in the specified template.pdfHeader
= PDFPageHeader(pageType
,templatePath
,docPartTemplateName
)
creates a page header for the specified type of page, based on the specified document
part template used by the specified source. The source can be a document or a document
part.pdfHeader
= PDFPageHeader(pageType
,templateSrc
,docPartTemplateName
)
Use PDFPageHeader
methods as you use the
corresponding Document
methods.
Method | Purpose |
---|---|
Append one of these DOM objects to the header:
| |
Close header. | |
Fill template hole. | |
Move to next template hole. | |
Open header. |
mlreportgen.dom.DOCXPageFooter
| mlreportgen.dom.DOCXPageHeader
| mlreportgen.dom.DOCXPageLayout
| mlreportgen.dom.PDFPageFooter
| mlreportgen.dom.PDFPageLayout