Package com.itextpdf.kernel.utils
Interface PageRange.IPageRangePart
-
- All Known Implementing Classes:
PageRange.PageRangePartAfter,PageRange.PageRangePartAnd,PageRange.PageRangePartOddEven,PageRange.PageRangePartSequence,PageRange.PageRangePartSingle
- Enclosing class:
- PageRange
public static interface PageRange.IPageRangePartInner interface for range parts definition
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<java.lang.Integer>getAllPagesInRange(int nbPages)Gets the list of pages that have been added to the range part so far.booleanisPageInRange(int pageNumber)Checks if a given page is present in the range part built so far.
-
-
-
Method Detail
-
getAllPagesInRange
java.util.List<java.lang.Integer> getAllPagesInRange(int nbPages)
Gets the list of pages that have been added to the range part so far.- Parameters:
nbPages- number of pages of the document to get the pages, to list only the pages eligible for this document- Returns:
- the list containing page numbers added to the range part matching this document
-
isPageInRange
boolean isPageInRange(int pageNumber)
Checks if a given page is present in the range part built so far.- Parameters:
pageNumber- the page number to check- Returns:
trueif the page is present in this range,falseotherwise
-
-