mlreportgen.dom.PageMargins Class
Namespace: mlreportgen.dom
Page margins for Microsoft Word and PDF page layout
Description
Use an object of the mlreportgen.dom.PageMargins
class to specify the
size of the page margins of a section of a Microsoft® Word or PDF report.
Creation of page headers and footers differs between Word and PDF documents. 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 type.
In addition, top and bottom margins are handled differently for different output types. 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 theHeader
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 theFooter
property. The body text ends above the footer. For Word documents, the footer expands to prevent overlapping of the body text.
The mlreportgen.dom.PageMargins
class is a handle
class.
Class Attributes
HandleCompatible | true |
ConstructOnLoad | true |
For information on class attributes, see Class Attributes.
Creation
Description
creates a pageMarginsObj
= mlreportgen.dom.PageMarginsPageMargins
object with properties that specify 1-inch
top, bottom, left, and right margins, a 0.5-inch header and footer, and a
0-pixel gutter.
Properties
Examples
Version History
Introduced in R2016a