mlreportgen.dom.PDFPageHeader class
Package: mlreportgen.dom
Page header definition for PDF document
Description
Add a header to the first page of a section or to odd pages, even pages, or both.
Construction
creates
an empty page header based on the default PDF template.pdfPageHeaderObj
= PDFPageHeader()
creates
an empty page header for the specified type of page based on the specified
template.pdfPageHeaderObj
= PDFPageHeader(pageType
,templatePath
)
creates
an empty page header for the specified type of page, based on the
specified document part template in the specified template.pdfPageHeaderObj
= PDFPageHeader(pageType
,templatePath
,docPartTemplateName
)
creates
an empty 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.pdfPageHeaderObj
= PDFPageHeader(pageType
,templateSrc
,docPartTemplateName
)
Input Arguments
Output Arguments
Properties
Methods
Use PDFPageHeader
methods like 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. |
See Also
mlreportgen.dom.DOCXPageFooter
| mlreportgen.dom.DOCXPageHeader
| mlreportgen.dom.DOCXPageLayout
| mlreportgen.dom.PDFPageFooter
| mlreportgen.dom.PDFPageLayout