ContentsResizeParameters
Overview
ContentsResizeParameters is a class in Aspose.PDF FOSS for Java.
Parameters for resizing page contents.
This class provides 14 methods for working with ContentsResizeParameters objects in Java programs.
Available methods include: ContentsResizeParameters, getBottomMargin, getContentsHeight, getContentsWidth, getLeftMargin, getRightMargin, getTopMargin, pageResize, setBottomMargin, setContentsHeight, setContentsWidth, setLeftMargin, and 2 additional methods.
All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package.
Properties: bottomMargin, contentsHeight, contentsWidth, leftMargin, rightMargin, topMargin.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
leftMargin | ContentsResizeValue | Read | Gets the left margin value. |
rightMargin | ContentsResizeValue | Read | Gets the right margin value. |
topMargin | ContentsResizeValue | Read | Gets the top margin value. |
bottomMargin | ContentsResizeValue | Read | Gets the bottom margin value. |
contentsWidth | ContentsResizeValue | Read | Gets the contents width value. |
contentsHeight | ContentsResizeValue | Read | Gets the contents height value. |
Methods
| Signature | Description |
|---|---|
ContentsResizeParameters(leftMargin: ContentsResizeValue, contentsWidth: ContentsResizeValue, rightMargin: ContentsResizeValue, topMargin: ContentsResizeValue, contentsHeight: ContentsResizeValue, bottomMargin: ContentsResizeValue) | Creates resize parameters with the specified margins and content dimensions. |
getLeftMargin() → ContentsResizeValue | Gets the left margin value. |
getRightMargin() → ContentsResizeValue | Gets the right margin value. |
getTopMargin() → ContentsResizeValue | Gets the top margin value. |
getBottomMargin() → ContentsResizeValue | Gets the bottom margin value. |
getContentsWidth() → ContentsResizeValue | Gets the contents width value. |
getContentsHeight() → ContentsResizeValue | Gets the contents height value. |
setLeftMargin(v: ContentsResizeValue) | Sets the left margin value. |
setRightMargin(v: ContentsResizeValue) | Sets the right margin value. |
setTopMargin(v: ContentsResizeValue) | Sets the top margin value. |
setBottomMargin(v: ContentsResizeValue) | Sets the bottom margin value. |
setContentsWidth(v: ContentsResizeValue) | Sets the contents width value. |
setContentsHeight(v: ContentsResizeValue) | Sets the contents height value. |
pageResize(width: double, height: double) → ContentsResizeParameters | Creates a {@code ContentsResizeParameters} with the specified content |
| dimensions and zero margins. |