java.lang.Object | |
↳ | com.pdftron.pdf.PageSet |
PageSet is a container of page numbers ordered following a linear sequence. The page numbers are integers and must be greater than zero. Duplicates are allowed.
Note: This is not a mathematical set.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | e_all | Page set filter that includes all pages in the range. | |||||||||
int | e_even | Page set filter that includes even numbers in the range (discards odd numbers). | |||||||||
int | e_odd | Page set filter that includes odd numbers in the range (discards even numbers). |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
PageSet()
Default constructor.
| |||||||||||
PageSet(int one_page)
Construct a set of pages with just one number.
| |||||||||||
PageSet(int range_start, int range_end)
Construct a range of pages.
| |||||||||||
PageSet(int range_start, int range_end, int filter)
Construct a filtered range of pages.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
long | __GetHandle() | ||||||||||
void |
addPage(int one_page)
Adds a page number to the sequence.
| ||||||||||
void |
addRange(int range_start, int range_end)
Adds a range of values to the sequence.
| ||||||||||
void |
addRange(int range_start, int range_end, int filter)
Adds a range of values to the sequence.
| ||||||||||
void |
close()
Frees the native memory of the object.
| ||||||||||
void |
destroy()
Frees the native memory of the object.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
java.lang.AutoCloseable
|
Page set filter that includes all pages in the range.
Page set filter that includes even numbers in the range (discards odd numbers).
Page set filter that includes odd numbers in the range (discards even numbers).
Default constructor. Constructs 'PageSet' with no pages.
Construct a set of pages with just one number.
See also addPage(int)
.
one_page | a valid page number |
---|
Construct a range of pages.
See also addRange(int, int)
.
range_start | the start page number of the range |
---|---|
range_end | the end page number of the range |
Construct a filtered range of pages.
See also addRange(int, int, int)
.
range_start | the start page number of the range |
---|---|
range_end | the end page number of the range |
filter | page set filter. |
Adds a page number to the sequence.
one_page | the page number being added |
---|
Adds a range of values to the sequence. Reverse ordering is legal.
range_start | the low value in the range |
---|---|
range_end | the high value in the range |
Adds a range of values to the sequence. Reverse ordering is legal.
range_start | the low value in the range |
---|---|
range_end | the high value in the range |
filter | page set filter. |
Frees the native memory of the object. This can be explicity called to control the deallocation of native memory and avoid situations where the garbage collector does not free the object in a timely manner.
PDFNetException |
---|
Frees the native memory of the object. This can be explicity called to control the deallocation of native memory and avoid situations where the garbage collector does not free the object in a timely manner.
PDFNetException |
---|