Margins

Overview

Margins is a class in Aspose.Pdf FOSS for Java.

Page margins in printer/device units, used by the C# printing API (Aspose.Pdf.Devices.Margins) for {@code PageSettings.Margins} and {@code PrinterSettings.DefaultPageSettings.Margins}.

Properties

NameTypeAccessDescription
leftintRead@return the left margin
rightintRead@return the right margin
topintRead@return the top margin
bottomintRead@return the bottom margin

Methods

SignatureDescription
Margins()Creates margins of zero on every side.
Margins(left: int, right: int, top: int, bottom: int)Creates margins with the given side widths (in device units).
getLeft()int@return the left margin
setLeft(left: int)Sets the left margin.
getRight()int@return the right margin
setRight(right: int)Sets the right margin.
getTop()int@return the top margin
setTop(top: int)Sets the top margin.
getBottom()int@return the bottom margin
setBottom(bottom: int)Sets the bottom margin.
toString()String
equals(o: Object)boolean
hashCode()int

See Also