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}.

This class provides 13 methods for working with Margins objects in Java programs. Available methods include: Margins, equals, getBottom, getLeft, getRight, getTop, hashCode, setBottom, setLeft, setRight, setTop, toString. All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package. Properties: bottom, left, right, top.

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

 English