Using @capgo/capacitor-document-scanner
Capacitor plugin to scan document iOS and Android.
Install
bun add @capgo/capacitor-document-scanner
bunx cap sync
bunx cap sync copies the plugin's native code into your native projects. Run it again after every plugin upgrade.
Import
import { DocumentScanner } from '@capgo/capacitor-document-scanner';
API at a glance
| Method | Description |
|---|---|
scanDocument |
Opens the device camera and starts the document scanning experience. |
Examples
scanDocument()
Opens the device camera and starts the document scanning experience.
import { DocumentScanner } from '@capgo/capacitor-document-scanner';
const result = await DocumentScanner.scanDocument();
console.log(result);
Full reference
Keep going from Using @capgo/capacitor-document-scanner
If you are using Using @capgo/capacitor-document-scanner to plan native plugin work, connect it with @capgo/capacitor-document-scanner for the implementation detail in @capgo/capacitor-document-scanner, Getting Started for the implementation detail in Getting Started, Capgo Plugin Directory for the product workflow in Capgo Plugin Directory, Capacitor Plugins by Capgo for the implementation detail in Capacitor Plugins by Capgo, and Adding or Updating Plugins for the implementation detail in Adding or Updating Plugins.