Package: mlreportgen.dom
Superclasses:
Page margins for Microsoft Word and PDF page layout
Specifies the size of the page margins of a section of a Microsoft® Word or PDF document.
Word and PDF formats create page headers and footers differently. For example, PDF page headers and footers are fixed in size. Word headers and footers expand to fit the content. Therefore, the appearance of top and bottom page margins using the same values can differ based on the output format.
In addition, each format handles top and bottom margins differently. These differences can result in different page breaks even with the same margin settings.
For PDF, the total height of the top margin equals the value of the
Top
property of this object plus the height of the
Header
property. The body text starts below the
header. For Word documents, the top margin and header expand to prevent
overlapping of the header and the body text.
Similarly, the total height of the PDF bottom margin equals the value of
the Bottom
property of this object plus the height of the
Footer
property. The body text ends above the footer.
For Word documents, the footer expands to prevent overlapping the body
text.
specifies default
page margins, which are one inch for the top, bottom, left, and right margins, one-half
inch for the header and footer, and zero pixels for the gutter.PageMarginsObj
= PageMargins()
mlreportgen.dom.DOCXPageFooter
| mlreportgen.dom.DOCXPageHeader
| mlreportgen.dom.DOCXPageLayout
| mlreportgen.dom.PDFPageFooter
| mlreportgen.dom.PDFPageHeader
| mlreportgen.dom.PDFPageLayout