UNPKG

capacitor-plugin-scanbot-sdk

Version:

Scanbot Document and Barcode Scanner SDK for Capacitor

40 lines (39 loc) 1.47 kB
/// Auto-generated with ScanbotSDKCodegenV3. Modifications will be overwritten. /// Generated from xplatforms/schemas/document_scanner/AddPageOptions.yaml import { ParametricFilter } from '../core/image_processing/ParametricFilters'; /** Options for creating a document from images. */ export class AddPageOptions { /** @param source {@displayType `DeepPartial<AddPageOptions>`} */ constructor(source = {}) { /** The list of filters applied to the page. If not specified, no filters are applied. */ this.filters = null; /** The index at which the new page will be inserted. If not provided, the page will be added at the end of the document. */ this.index = null; /** Recognizes documents on created page. Default is true */ this.documentDetection = true; if (source.filters !== undefined) { this.filters = source.filters != null ? source.filters.map((it) => { return ParametricFilter.from(it); }) : null; } if (source.index !== undefined) { this.index = source.index != null ? source.index : null; } if (source.documentDetection !== undefined) { this.documentDetection = source.documentDetection; } } } //# sourceMappingURL=AddPageOptions.js.map