UNPKG

@docutain/capacitor-plugin-docutain-sdk

Version:

Capacitor plugin of the Docutain Document Scanner SDK for Android and iOS. High quality document scanning, data extraction, text recognition and PDF creation for your apps. Easily scan documents in your app.

327 lines (318 loc) 9.88 kB
var capacitorDocutainSDK = (function (exports, core) { 'use strict'; /** * Docutain SDK Capacitor * Copyright (c) INFOSOFT Informations- und Dokumentationssysteme GmbH. All rights reserved. * * Docutain SDK Capacitor is a commercial product and requires a license. * Details found in the LICENSE file in the root directory of this source tree. */ /** * Available PDF page formats when generating PDF documents. * * @since 1.0.0 */ exports.PDFPageFormat = void 0; (function (PDFPageFormat) { /** * * @since 1.0.0 */ PDFPageFormat["FitToPages"] = "FIT_TO_PAGES"; /** * * @since 1.0.0 */ PDFPageFormat["A4"] = "A4"; /** * * @since 1.0.0 */ PDFPageFormat["A4Landscape"] = "A4_LANDSCAPE"; /** * * @since 1.0.0 */ PDFPageFormat["A5"] = "A5"; /** * * @since 1.0.0 */ PDFPageFormat["A5Landscape"] = "A5_LANDSCAPE"; /** * * @since 1.0.0 */ PDFPageFormat["Letter"] = "LETTER"; /** * * @since 1.0.0 */ PDFPageFormat["LetterLandscape"] = "LETTER_LANDSCAPE"; /** * * @since 1.0.0 */ PDFPageFormat["Legal"] = "LEGAL"; /** * * @since 1.0.0 */ PDFPageFormat["LegalLandscape"] = "LEGAL_LANDSCAPE"; })(exports.PDFPageFormat || (exports.PDFPageFormat = {})); /** * Available filters that can be applied on scanned documents. * * @since 1.0.0 */ exports.ScanFilter = void 0; (function (ScanFilter) { /** * * @since 1.0.0 */ ScanFilter["Auto"] = "AUTO"; /** * * @since 1.0.0 */ ScanFilter["Gray"] = "GRAY"; /** * * @since 1.0.0 */ ScanFilter["BlackWhite"] = "BLACKWHITE"; /** * * @since 1.0.0 */ ScanFilter["Original"] = "ORIGINAL"; /** * * @since 1.0.0 */ ScanFilter["Text"] = "TEXT"; /** * * @since 1.0.0 */ ScanFilter["Auto2"] = "AUTO2"; /** * * @since 1.0.0 */ ScanFilter["Illustration"] = "ILLUSTRATION"; })(exports.ScanFilter || (exports.ScanFilter = {})); /** * Available page source types when generating image files from scanned or imported pages. * * @since 1.0.0 */ exports.PageSourceType = void 0; (function (PageSourceType) { /** * Uncut, unfiltered image as delivered by camera. * * @since 1.0.0 */ PageSourceType["Original"] = "ORIGINAL"; /** * Cut and filtered image. * * @since 1.0.0 */ PageSourceType["CutFilter"] = "CUT_FILTER"; /** * Cut only image, no filter. * * @since 1.0.0 */ PageSourceType["CutOnly"] = "CUT_ONLY"; })(exports.PageSourceType || (exports.PageSourceType = {})); /** * Available log level for defining the level of logging detail * * @since 1.0.0 */ exports.LogLevel = void 0; (function (LogLevel) { LogLevel["Disable"] = "DISABLE"; LogLevel["Assert"] = "ASSERT"; LogLevel["Error"] = "ERROR"; LogLevel["Warning"] = "WARNING"; LogLevel["Info"] = "INFO"; LogLevel["Debug"] = "DEBUG"; LogLevel["Verbose"] = "VERBOSE"; })(exports.LogLevel || (exports.LogLevel = {})); /** * Available sources for the document scanner. * * @since 1.0.0 */ exports.Source = void 0; (function (Source) { /** * Scan a document by using the devices camera. * * @since 1.0.0 */ Source["Camera"] = "CAMERA"; /** * Scan a document from the provided image. * * @since 1.0.0 */ Source["Image"] = "IMAGE"; /** * Open an image picker in single selection mode and scan a document from the selected image. * * @since 1.0.0 */ Source["Gallery"] = "GALLERY"; /** * Open an image picker in multi selection mode and scan documents from the selected images. * * @since 1.0.0 */ Source["GalleryMultiple"] = "GALLERY_MULTIPLE"; /** * Same as [CAMERA] but shows an additional import button which the user can use to import files as well. * * @since 6.0.0 */ Source["CameraImport"] = "CAMERA_IMPORT"; })(exports.Source || (exports.Source = {})); /** * Available statusbar appearances. * * @since 2.0.5 */ exports.StatusBarAppearance = void 0; (function (StatusBarAppearance) { /** * Light appearance. * * @since 2.0.5 */ StatusBarAppearance["Light"] = "LIGHT"; /** * Dark appearance. * * @since 2.0.5 */ StatusBarAppearance["Dark"] = "DARK"; })(exports.StatusBarAppearance || (exports.StatusBarAppearance = {})); /** * Available navigationbar appearances. * * @since 2.0.5 */ exports.NavigationBarAppearance = void 0; (function (NavigationBarAppearance) { /** * Light appearance. * * @since 2.0.5 */ NavigationBarAppearance["Light"] = "LIGHT"; /** * Dark appearance. * * @since 2.0.5 */ NavigationBarAppearance["Dark"] = "DARK"; })(exports.NavigationBarAppearance || (exports.NavigationBarAppearance = {})); /** * Docutain SDK Capacitor * Copyright (c) INFOSOFT Informations- und Dokumentationssysteme GmbH. All rights reserved. * * Docutain SDK Capacitor is a commercial product and requires a license. * Details found in the LICENSE file in the root directory of this source tree. */ /** * DocutainSDK instance. */ const DocutainSDK = core.registerPlugin('DocutainSDK', { web: () => Promise.resolve().then(function () { return web; }).then(m => new m.DocutainSDKWeb()), }); /** * Docutain SDK Capacitor * Copyright (c) INFOSOFT Informations- und Dokumentationssysteme GmbH. All rights reserved. * * Docutain SDK Capacitor is a commercial product and requires a license. * Details found in the LICENSE file in the root directory of this source tree. */ class DocutainSDKWeb extends core.WebPlugin { async initSDK(_options) { throw this.unimplemented('initSDK not implemented on web.'); } async scanDocument(_args) { throw this.unimplemented('scanDocument not implemented on web.'); } async startDocumentScanner(_options) { throw this.unimplemented('scanDocument not implemented on web.'); } async loadFile(_options) { throw this.unimplemented('loadFile not implemented on web.'); } async getText() { throw this.unimplemented('getText not implemented on web.'); } async getTextPage(_options) { throw this.unimplemented('getTextPage not implemented on web.'); } async setAnalyzeConfiguration(_args) { throw this.unimplemented('setAnalyzeConfiguration not implemented on web.'); } async setAnalyzeConfigurationDocScan(_options) { throw this.unimplemented('setAnalyzeConfigurationDocScan not implemented on web.'); } async analyze() { throw this.unimplemented('analyze not implemented on web.'); } async writePDF(_options) { throw this.unimplemented('writePDF not implemented on web.'); } async setLogLevel(_options) { throw this.unimplemented('setLogLevel not implemented on web.'); } async getTraceFile() { throw this.unimplemented('getTraceFile not implemented on web.'); } async deleteTempFiles(_options) { throw this.unimplemented('deleteTempFiles not implemented on web.'); } async writeImage(_options) { throw this.unimplemented('writeImage not implemented on web.'); } async getImageBytes(_options) { throw this.unimplemented('writeImage not implemented on web.'); } async pageCount() { throw this.unimplemented('writeImage not implemented on web.'); } async resetOnboarding(_options) { throw this.unimplemented('resetOnboarding not implemented on web.'); } async onboardingDefaultItems() { throw this.unimplemented('onboardingDefaultItems not implemented on web.'); } async scanTipsDefaultItems() { throw this.unimplemented('scanTipsDefaultItems not implemented on web.'); } async startPhotoPayment(_options) { throw this.unimplemented('startPhotoPayment not implemented on web.'); } async emptyResultScreenDefaultItems() { throw this.unimplemented('emptyResultScreenDefaultItems not implemented on web.'); } } var web = /*#__PURE__*/Object.freeze({ __proto__: null, DocutainSDKWeb: DocutainSDKWeb }); exports.DocutainSDK = DocutainSDK; Object.defineProperty(exports, '__esModule', { value: true }); return exports; })({}, capacitorExports); //# sourceMappingURL=plugin.js.map