IPdfFileEditor.ContentsResizeValue
Inheritance: java.lang.Object
public static class IPdfFileEditor.ContentsResizeValue
Value of margin or content size specified in percents of default space units. This class is used in ContentsResizeParameters.
Methods
Method | Description |
---|---|
setPercentValue(double value) | Sets value in percents of page size. |
setUnitValue(double value) | Sets value in default space units. |
getValue() | Gets specified value. |
isPercent() | Gets true if value is expressed in percents; False if value is expressed in default units. |
percents(double value) | Initializes value in percents. |
units(double value) | Initializes value in default space units. |
auto() | Initializes automatically calculated value. |
setPercentValue(double value)
public final void setPercentValue(double value)
Sets value in percents of page size.
Parameters:
Parameter | Type | Description |
---|---|---|
value | double | double value |
setUnitValue(double value)
public final void setUnitValue(double value)
Sets value in default space units.
Parameters:
Parameter | Type | Description |
---|---|---|
value | double | double value |
getValue()
public final double getValue()
Gets specified value. Use Unit property to get value units.
Returns: double - double value
isPercent()
public final boolean isPercent()
Gets true if value is expressed in percents; False if value is expressed in default units.
Returns: boolean - boolean value
percents(double value)
public static IPdfFileEditor.ContentsResizeValue percents(double value)
Initializes value in percents.
Parameters:
Parameter | Type | Description |
---|---|---|
value | double | Value in percents. |
Returns: ContentsResizeValue - New value instance.
units(double value)
public static IPdfFileEditor.ContentsResizeValue units(double value)
Initializes value in default space units.
Parameters:
Parameter | Type | Description |
---|---|---|
value | double | Value in units. |
Returns: ContentsResizeValue - New value instance.
auto()
public static IPdfFileEditor.ContentsResizeValue auto()
Initializes automatically calculated value.
Returns: ContentsResizeValue - New value instance.