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