PageRangeFilter

Inheritance: java.lang.Object, com.groupdocs.redaction.redactions.RedactionFilter

public class PageRangeFilter extends RedactionFilter

Represents redaction filter, setting page range inside a document to apply redaction.


Learn more

Constructors

Constructor Description
PageRangeFilter(PageSeekOrigin origin, int index, int count) Initializes a new instance of RemovePageRedaction class.

Methods

Method Description
getOrigin() Gets seek reference position, the beginning or the end of a document.
getIndex() Gets start position index (0-based).
getCount() Gets the count of pages to remove.
isPageInRange(int pageIndex, int pageCount) Checks if this filter page range contains given page.

PageRangeFilter(PageSeekOrigin origin, int index, int count)

public PageRangeFilter(PageSeekOrigin origin, int index, int count)

Initializes a new instance of RemovePageRedaction class.

Parameters:

Parameter Type Description
origin PageSeekOrigin Seek reference position, the beginning or the end of a document
index int Start position index (0-based)
count int Count of pages to remove

getOrigin()

public final PageSeekOrigin getOrigin()

Gets seek reference position, the beginning or the end of a document.

Returns: PageSeekOrigin - Seek reference position, the beginning or the end of a document.

getIndex()

public final int getIndex()

Gets start position index (0-based).

Returns: int - Start position index (0-based).

getCount()

public final int getCount()

Gets the count of pages to remove.

Returns: int - The count of pages to remove.

isPageInRange(int pageIndex, int pageCount)

public final boolean isPageInRange(int pageIndex, int pageCount)

Checks if this filter page range contains given page.

Parameters:

Parameter Type Description
pageIndex int index of the page (zero-bazed)
pageCount int total page count

Returns: boolean - true, if this filter range contains page