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
| Name | Type | Access | Description |
|---|---|---|---|
left | int | Read | @return the left margin |
right | int | Read | @return the right margin |
top | int | Read | @return the top margin |
bottom | int | Read | @return the bottom margin |
Methods
| Signature | Description |
|---|---|
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 |