Constructor
new PageRanges()
- Description:
Constructs a new PageRanges instance with no pages added.
Methods
addSinglePage(pagenon-null)
- Description:
Adds a single page. Page index starts from 1.
Parameters:
Name | Type | Description |
---|---|---|
page |
Number | single page index |
addPageRange(startnon-null, endnon-null)
- Description:
Adds a page range. Page indexes start from 1.
Parameters:
Name | Type | Description |
---|---|---|
start |
Number | start page index, inclusive |
end |
Number | end page index, inclusive |
addAllFrom(startnon-null)
- Description:
Adds a page range from the specified start page index to the last page. Page index starts from 1.
Parameters:
Name | Type | Description |
---|---|---|
start |
Number | start page index |
addAll()
- Description:
Adds a page range representing all pages.