/// Auto-generated with ScanbotSDKCodegenV3. Modifications will be overwritten. /// Generated from xplatforms/schemas/document_scanner/CreateDocumentOptions.yaml import { ParametricFilter } from '../core/image_processing/ParametricFilters'; import { DeepPartial } from '../core/utils/utils'; /** Options for creating a document from images. */ export class CreateDocumentOptions { /** The maximum size of the document image. 0 means no limit. Default is 0 */ public documentImageSizeLimit: number = 0; /** The list of filters applied to the page. If not specified, no filters are applied. */ public filters: ParametricFilter[] | null = null; /** Recognizes documents on created document. Default is true */ public documentDetection: boolean = true; /** @param source {@displayType `DeepPartial`} */ public constructor(source: DeepPartial = {}) { if (source.documentImageSizeLimit !== undefined) { this.documentImageSizeLimit = source.documentImageSizeLimit; } if (source.filters !== undefined) { this.filters = source.filters != null ? source.filters.map((it: DeepPartial) => { return ParametricFilter.from(it); }) : null; } if (source.documentDetection !== undefined) { this.documentDetection = source.documentDetection; } } }