PageSize
Source: aspose.
Contains information about page size for the generated images.
new PageSize(paperSizeFormat)
Initializes a new instance of this class that can be used to set page size for the generated images.
Parameter
Name | Type | Optional | Description |
---|---|---|---|
paperSizeFormat |
|
|
PaperSizeFormat |
Methods
constructor_overload$1(width, height)
Initializes a new instance of this class that can be used to set page size for the generated images.
Parameters
Name | Type | Optional | Description |
---|---|---|---|
width |
Number |
|
Page width in points for the the generated images. |
height |
Number |
|
Page height in points for the the generated images. |
getHeight()
Gets or sets the page height in points for the the generated images. The value must be > 0. If Height is set,Width must be set too.
getPaperSizeFormat()
Gets or sets the paper size format for the generated images. Can be PaperSizeFormat. The value of the property is PaperSizeFormat integer constant.
getWidth()
Gets or sets the page width in points for the the generated images. The value must be > 0. If Width is set, Height must be set too.
setHeight()
Gets or sets the page height in points for the the generated images. The value must be > 0. If Height is set,Width must be set too.
setPaperSizeFormat()
Gets or sets the paper size format for the generated images. Can be PaperSizeFormat. The value of the property is PaperSizeFormat integer constant.
setWidth()
Gets or sets the page width in points for the the generated images. The value must be > 0. If Width is set, Height must be set too.