PageProcessor

open class PageProcessor(fileIOProcessor: FileIOProcessor, pageFileStorage: PageFileStorage, documentScanner: DocumentScanner)

Deprecated

Use new Document API instead.

Performs processing operation on Page

Inheritors

Constructors

Link copied to clipboard
constructor(fileIOProcessor: FileIOProcessor, pageFileStorage: PageFileStorage, documentScanner: DocumentScanner)

Functions

Link copied to clipboard
fun applyFilter(page: Page, parametricFilter: ParametricFilter): Page

Applies an image filter on given page based on the existing unfiltered document image. The filtered image result will be stored as document image of the page. The current document image of the page will be overwritten. The original image of the page will not be modified.

fun applyFilter(page: Page, parametricFilters: List<ParametricFilter>): Page

Applies an image filters in a given order in the list on given page based on the existing unfiltered document image. The filtered image result will be stored as document image of the page. The current document image of the page will be overwritten. The original image of the page will not be modified.

Link copied to clipboard
fun cropAndRotate(page: Page, times: Int, polygon: List<PointF>): Page

Crops the polygon from the original image and rotates all images (and previews) of the given page x times. The original image is required, other images (document, unfiltered document) are optional. The direction of rotation is counterclockwise if the times value is positive and clockwise if times value is negative (e.g. -2 = rotates 2 times to the right).

Link copied to clipboard

Performs document scanning on the original image of given page. The page must have the original image. Creates and stored the document (cropped) image file based on document scanning result (polygon) and optionally defined filter in the page object.

Link copied to clipboard
fun generateFilteredPreview(page: Page, parametricFilter: ParametricFilter): Bitmap

Generates filtered preview image based on the unfiltered document preview image and caches it in the file system.

Link copied to clipboard
fun rotate(page: Page, times: Int): Page

Rotates all images (and previews) of the given page x times. The original image is required, other images (document, unfiltered document) are optional. The direction of rotation is counterclockwise if the times value is positive and clockwise if times value is negative (e.g. -2 = rotates 2 times to the right).