public class Page extends Object
Represents single page that can be viewed.
Constructor and Description |
---|
Page(int number,
boolean visible)
Initializes new instance of
Page class. |
Page(int number,
boolean visible,
int width,
int height)
Initializes new instance of
Page class. |
Page(int number,
boolean visible,
int width,
int height,
List<Line> lines)
Initializes new instance of
Page class. |
public Page(int number, boolean visible)
Initializes new instance of Page
class.
number
- The page number.visible
- The page visibility indicator.IllegalArgumentException
- Thrown when number
is less or equal to zero.public Page(int number, boolean visible, int width, int height)
Initializes new instance of Page
class.
number
- The page number.visible
- The page visibility indicator.width
- The width of the page in pixels when viewing as JPG or PNG.height
- The height of the page in pixels when viewing as JPG or PNG.IllegalArgumentException
- Thrown when number
is less or equal to zero.IllegalArgumentException
- Thrown when width
is less or equal to zero.IllegalArgumentException
- Thrown when height
is less or equal to zero.public Page(int number, boolean visible, int width, int height, List<Line> lines)
Initializes new instance of Page
class.
number
- The page number.visible
- The page visibility indicator.width
- The width of the page in pixels when viewing as JPG or PNG.height
- The height of the page in pixels when viewing as JPG or PNG.lines
- The lines contained by the page when viewing as JPG or PNG with enabled Text Extraction.IllegalArgumentException
- Thrown when number
is less or equal to zero.IllegalArgumentException
- Thrown when width
is less or equal to zero.IllegalArgumentException
- Thrown when height
is less or equal to zero.IllegalArgumentException
- Thrown when lines
is null.Copyright © 2020. All rights reserved.