Interface PageOptions

Options to pass to the parse method for cutting multi-page documents.

interface PageOptions {
    onMinPages: number;
    operation: PageOptionsOperation;
    pageIndexes: number[];
}

Properties

onMinPages: number

Apply the operation only if document has at least this many pages.

Operation to apply on the document, given the pageIndexes specified.

pageIndexes: number[]

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 fist and last pages of the document.