メインコンテンツにジャンプ
@capgo/capacitor-ドキュメント スキャナー ファイル & ストレージ オープン ソース

ドキュメント スキャナー Capacitor プラグイン

ドキュメントを自動エッジ検出、歪み補正、PDFエクスポートでスキャン

インストール

bun add @capgo/capacitor-document-scanner bunx cap sync
npm、pnpmまたはyarn
  • npm install @capgo/capacitor-document-scanner
  • pnpm add @capgo/capacitor-document-scanner
  • yarn add @capgo/capacitor-document-scanner

プラグインチームと話す →

How to use Document Scanner in Capacitor

__CAPGO_KEEP_0__でドキュメント スキャナーを使用する方法

Download the Capgo app, then scan the QR code.

ドキュメント スキャナ プラグインのプレビュー QR code

@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 プラグインのネイティブ code をプロジェクトにコピーします。プラグインのアップグレード後は再度実行してください。

Import

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

APIの概要

Method 概要
scanDocument デバイスのカメラを開き、ドキュメント スキャニング エクスペリエンスを開始します。

例

scanDocument()

デバイスのカメラを開き、ドキュメント スキャニング エクスペリエンスを開始します。

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

const result = await DocumentScanner.scanDocument();
console.log(result);

完全なリファレンス

@capgo/capacitor-document-scanner

使用中 使用中の @capgo/capacitor-document-scanner を接続します。 ドキュメント スキャナー プラグインを使用して、 @capgo/capacitor-document-scanner @capgo/capacitor-document-scanner はじめに @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-document-scanner @Capgo プラグイン ディレクトリ @Capgo @__CAPGO_KEEP_1__ によって提供されるプラグイン Capacitor Capgo により提供されるプラグイン for Capacitor の実装詳細については、Capgo によって提供されるプラグインを参照してください。 このページ @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-document-scanner

FAQ

ドキュメント スキャナ プラグインのFAQ

ドキュメント スキャナ プラグインをCapacitorアプリにインストールするにはどうすればいいですか?

Run "bun add @capgo/capacitor-document-scanner" (or "npm install @capgo/capacitor-document-scanner"), then run "bunx cap sync" so the iOS and Android projects pick up the native code. Import it from "@capgo/capacitor-document-scanner" in your app code.

React、Vue、Angularと一緒に@capgo/capacitor-document-scannerが動作することはできますか?

Yes. Document Scanner is a Capacitor package, so it works with any web framework that runs inside Capacitor, including Ionic, React, Vue, Angular, Svelte and plain JavaScript.

どの Capacitor バージョンが @capgo/capacitor-document-scanner をサポートしていますか?

Capgo plugins follow Capacitor's major version: use the plugin major version that matches your Capacitor major version (for example plugin v8 with Capacitor 8). The compatibility table in the GitHub README lists the maintained versions.

は @capgo/capacitor-document-scanner が無料でオープンソースですか?

Yes. The source code is public on GitHub at https://github.com/Cap-go/capacitor-document-scanner/ and the package is free to install from npm. Bug reports and pull requests are welcome.

ドキュメント スキャナーを使用する code をアップデートすることは、App Store のレビューなしでできますか?

プラグインをインストールまたはアップグレードすると、ネイティブ code が変更されるため、新しいストアのビルドが必要になります。その後、JavaScript、HTML、CSSの変更がプラグインを呼び出すと、Capgo のライブアップデートで即時配信できます。

アプリレビューの待たずにShip Document Scannerの変更

プラグインがストアにビルドされたら、CapgoのLive Updateは、ユーザーにJavaScript、HTML、CSSの変更を数分で反映します。

Capgo