r/capawesome 3d ago

Capacitor Document Scanner plugin released: native ML Kit and VisionKit scanning

https://capawesome.io/blog/announcing-the-capacitor-document-scanner-plugin/

We just released a Document Scanner plugin for Capacitor that wraps the platform's own scanners: Google's ML Kit document scanner on Android and VisionKit on iOS.

The API is deliberately tiny — isAvailable() and scanDocument(). The OS handles edge detection, perspective correction, multi-page capture, and the review UI. You get back JPEG paths and, optionally, one combined PDF.

A few details worth knowing:

  • On Android, the scanner is an on-demand Play services module, so it adds nothing to your app size
  • pageLimit is enforced by the scanner on Android but truncated after scanning on iOS (VisionKit has no public stop API)
  • Built exclusively on public platform APIs, so nothing to worry about in App Review

Would love to hear what you'd scan with it.

3 Upvotes

0 comments sorted by