import { DocumentScanner, DocumentScannerOptions } from '@awesome-cordova-plugins/document-scanner';
constructor(private documentScanner: DocumentScanner) { }
...
let opts: DocumentScannerOptions = {};
this.documentScanner.scanDocument(opts)
.then((res: string) => console.log(res))
.catch((error: any) => console.error(error));