Package com.mindee.input
Class PageOptions
- java.lang.Object
-
- com.mindee.input.PageOptions
-
public final class PageOptions extends Object
Represent options to cut a document.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPageOptions.BuilderBuilder for page options.
-
Constructor Summary
Constructors Constructor Description PageOptions(List<Integer> pages)Deprecated.Use the Builder pattern instead.PageOptions(List<Integer> pages, PageOptionsOperation operation)Deprecated.Use the Builder pattern instead.PageOptions(List<Integer> pageIndexes, PageOptionsOperation operation, Integer onMinPages)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)IntegergetOnMinPages()Apply the operation only if the document has at least this many pages. 0 by default.PageOptionsOperationgetOperation()Operation to apply on the document, given the `pageIndexes` specified.List<Integer>getPageIndexes()Zero-based list of page indexes.inthashCode()StringtoString()
-
-
-
Constructor Detail
-
PageOptions
@Deprecated public PageOptions(List<Integer> pages)
Deprecated.Use the Builder pattern instead.
-
PageOptions
@Deprecated public PageOptions(List<Integer> pages, PageOptionsOperation operation)
Deprecated.Use the Builder pattern instead.
-
PageOptions
public PageOptions(List<Integer> pageIndexes, PageOptionsOperation operation, Integer onMinPages)
-
-
Method Detail
-
getPageIndexes
public List<Integer> getPageIndexes()
Zero-based list of page indexes. A negative index can be used, indicating an offset from the end of the document. [0, -1] represents the first and last pages of the document.
-
getOperation
public PageOptionsOperation getOperation()
Operation to apply on the document, given the `pageIndexes` specified. `KeepOnly` by default.
-
getOnMinPages
public Integer getOnMinPages()
Apply the operation only if the document has at least this many pages. 0 by default.
-
-