Skip to main content
Back to plugins
@capgo/capacitor-document-scanner
Tutorial
@capgo/capacitor-document-scanner

Document Scanner

Scan documents with auto edge detection, perspective correction, and PDF export

Guide

Tutorial on Document Scanner

Using @capgo/capacitor-document-scanner

Capacitor plugin to scan document iOS and Android.

Install

bun add @capgo/capacitor-document-scanner
bunx cap sync

What This Plugin Exposes

  • scanDocument - Opens the device camera and starts the document scanning experience.

Example Usage

scanDocument

Opens the device camera and starts the document scanning experience.

import { DocumentScanner } from '@capgo/capacitor-document-scanner';

await DocumentScanner.scanDocument();

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.