The recommended way to manage page margins is via Worksheet#page_margins
PageMargins specify the margins when printing a worksheet.
For compatibility, PageMargins serialize to an empty string, unless at least one custom margin value has been specified. Otherwise, it serializes to a PageMargin element specifying all 6 margin values (using default values for margins that have not been specified explicitly).
Creates a new PageMargins object
Bottom margin (in inches)
Footer margin (in inches)
Header margin (in inches)
Left margin (in inches)
Right margin (in inches)
Set some or all margins at once.
For compatibility, this is a noop unless custom margins have been specified.
Serializes the page margins element
Top margin (in inches)