PageAreaOptions
Leave feedback
On this page
Inheritance: java.lang.Object
public class PageAreaOptions
Provides the options which are used for page areas extraction.
An instance of PageAreaOptions class is used as parameter in Parser.getImages(PageAreaOptions) and Parser.getImages(int, PageAreaOptions) methods. See the usage examples there.
| Constructor | Description |
|---|---|
| PageAreaOptions(Rectangle rectangle) | Initializes a new instance of the PageAreaOptions class with the size of the ignored border. |
| PageAreaOptions(Rectangle rectangle, double rectangleTolerance) | Initializes a new instance of the PageAreaOptions class. |
| Method | Description |
|---|---|
| getRectangle() | Gets the rectangular area that contains page areas. |
| getRectangleTolerance() | Gets the size of the border that is ignored when captured by the rectangular area. |
public PageAreaOptions(Rectangle rectangle)
Initializes a new instance of the PageAreaOptions class with the size of the ignored border.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| rectangle | Rectangle | The rectangular area that contains page areas. |
public PageAreaOptions(Rectangle rectangle, double rectangleTolerance)
Initializes a new instance of the PageAreaOptions class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| rectangle | Rectangle | The rectangular area that contains page areas. |
| rectangleTolerance | double | The size of the border that is ignored when captured by the rectangular area. It’s measured by the fraction of a text item height. |
public Rectangle getRectangle()
Gets the rectangular area that contains page areas.
Returns: Rectangle - An instance of Rectangle class that represents the rectangular area that contains page areas; null if it isn’t set.
public double getRectangleTolerance()
Gets the size of the border that is ignored when captured by the rectangular area. It’s measured by the fraction of a text item height.
Returns: double - The double value from 0 (no border) to 1 (ignore the whole element).
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.