public class PageRangeFilter extends RedactionFilter
Represents redaction filter, setting page range inside a document to apply redaction.
Learn more
| Constructor and Description |
|---|
PageRangeFilter(PageSeekOrigin origin,
int index,
int count)
Initializes a new instance of RemovePageRedaction class.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCount()
Gets the count of pages to remove.
|
int |
getIndex()
Gets start position index (0-based).
|
PageSeekOrigin |
getOrigin()
Gets seek reference position, the beginning or the end of a document.
|
boolean |
isPageInRange(int pageIndex,
int pageCount)
Checks if this filter page range contains given page.
|
public PageRangeFilter(PageSeekOrigin origin, int index, int count)
Initializes a new instance of RemovePageRedaction class.
origin - Seek reference position, the beginning or the end of a documentindex - Start position index (0-based)count - Count of pages to removepublic final int getCount()
Gets the count of pages to remove.
public final int getIndex()
Gets start position index (0-based).
public final PageSeekOrigin getOrigin()
Gets seek reference position, the beginning or the end of a document.
public final boolean isPageInRange(int pageIndex,
int pageCount)
Checks if this filter page range contains given page.
pageIndex - index of the page (zero-bazed)pageCount - total page countCopyright © 2025. All rights reserved.