{"id":15998293,"url":"https://github.com/yushulx/flutter_twain_scanner","last_synced_at":"2026-03-06T16:30:57.825Z","repository":{"id":65145115,"uuid":"583673136","full_name":"yushulx/flutter_twain_scanner","owner":"yushulx","description":"Flutter wrapper for Dynamic Web TWAIN Service, supporting document scanning from TWAIN, WIA, ICA, SANE and eSCL scanners.","archived":false,"fork":false,"pushed_at":"2025-05-08T01:03:09.000Z","size":8145,"stargazers_count":1,"open_issues_count":3,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-08T02:19:39.089Z","etag":null,"topics":["document","escl","ica","sane","scanner","twain","wia"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/flutter_twain_scanner","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yushulx.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-12-30T14:25:25.000Z","updated_at":"2025-05-08T01:02:58.000Z","dependencies_parsed_at":"2025-05-08T02:19:36.749Z","dependency_job_id":"952de0db-9b63-4f5c-99e7-75f8f33bf5b4","html_url":"https://github.com/yushulx/flutter_twain_scanner","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/yushulx/flutter_twain_scanner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yushulx%2Fflutter_twain_scanner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yushulx%2Fflutter_twain_scanner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yushulx%2Fflutter_twain_scanner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yushulx%2Fflutter_twain_scanner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yushulx","download_url":"https://codeload.github.com/yushulx/flutter_twain_scanner/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yushulx%2Fflutter_twain_scanner/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30185420,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T14:42:24.748Z","status":"ssl_error","status_checked_at":"2026-03-06T14:42:14.925Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["document","escl","ica","sane","scanner","twain","wia"],"created_at":"2024-10-08T08:08:25.165Z","updated_at":"2026-03-06T16:30:57.814Z","avatar_url":"https://github.com/yushulx.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flutter Document Scanner SDK for TWAIN, WIA, SANE, ICA and eSCL Scanners\n\n![Flutter TWAIN Dynamic Web TWAIN Service](https://www.dynamsoft.com/codepool/img/2023/09/flutter-twain-dynamsoft-service.gif)\n\nA Flutter plugin that enables you to develop cross-platform applications for digitizing documents from **TWAIN (32-bit/64-bit)**, **WIA**, **SANE**, **ICA** and **eSCL** scanners. The plugin offers callable methods for both [open-source TWAIN](https://github.com/twain/twain-samples) (**64-bit only**) and the **Dynamic Web TWAIN Service REST API**.\n\n## ⚙️ Prerequisites\n\n### ✅ Install Dynamic Web TWAIN Service\n\n- **Windows**: [Dynamsoft-Service-Setup.msi](https://demo.dynamsoft.com/DWT/DWTResources/dist/DynamsoftServiceSetup.msi)  \n- **macOS**: [Dynamsoft-Service-Setup.pkg](https://demo.dynamsoft.com/DWT/DWTResources/dist/DynamsoftServiceSetup.pkg)  \n- **Linux**:  \n  - [Dynamsoft-Service-Setup.deb](https://demo.dynamsoft.com/DWT/DWTResources/dist/DynamsoftServiceSetup.deb)  \n  - [Dynamsoft-Service-Setup-arm64.deb](https://demo.dynamsoft.com/DWT/DWTResources/dist/DynamsoftServiceSetup-arm64.deb)  \n  - [Dynamsoft-Service-Setup-mips64el.deb](https://demo.dynamsoft.com/DWT/DWTResources/dist/DynamsoftServiceSetup-mips64el.deb)  \n  - [Dynamsoft-Service-Setup.rpm](https://demo.dynamsoft.com/DWT/DWTResources/dist/DynamsoftServiceSetup.rpm)\n\n### 🔑 Get a License\n\nRequest a [free trial license](https://www.dynamsoft.com/customer/license/trialLicense/?product=dcv\u0026package=cross-platform).\n\n## 🧩 Configuration\n\nAfter installation, open `http://127.0.0.1:18625/` in your browser to configure the **host** and **port** settings.\n\n\u003e By default, the service is bound to `127.0.0.1`. To access it across the LAN, change the host to your local IP (e.g., `192.168.8.72`).\n\n![dynamsoft-service-config](https://github.com/yushulx/dynamsoft-service-REST-API/assets/2202306/e2b1292e-dfbd-4821-bf41-70e2847dd51e)\n\n\n## 📡 REST API Endpoints\n\n[https://www.dynamsoft.com/web-twain/docs/info/api/restful.html](https://www.dynamsoft.com/web-twain/docs/info/api/restful.html)\n\n## 📚 API Reference for Dynamic Web TWAIN Service\n\n### Scanner Methods\n\n| Method | Description |\n|--------|-------------|\n| `Future\u003cList\u003cdynamic\u003e\u003e getDevices(String host, [int? scannerType])` | Get a list of scanning devices |\n| `Future\u003cMap\u003cString, dynamic\u003e\u003e createJob(String host, Map\u003cString, dynamic\u003e parameters)` | Create a scanning job |\n| `Future\u003cMap\u003cString, dynamic\u003e\u003e checkJob(String host, String jobId)` | Check the status of a scan job |\n| `Future\u003cMap\u003cString, dynamic\u003e\u003e updateJob(String host, String jobId, Map\u003cString, dynamic\u003e parameters)` | Update a scan job (e.g., cancel it) |\n| `Future\u003cvoid\u003e deleteJob(String host, String jobId)` | Delete a scan job |\n| `Future\u003cList\u003cString\u003e\u003e getImageFiles(String host, String jobId, String directory)` | Download and save scanned images |\n| `Future\u003cList\u003cUint8List\u003e\u003e getImageStreams(String host, String jobId)` | Get scanned images as byte streams |\n| `Future\u003cMap\u003cString, dynamic\u003e\u003e getImageInfo(String host, String jobId)` | Get info about the next scanned image |\n| `Future\u003cMap\u003cString, dynamic\u003e\u003e getScannerCapabilities(String host, String jobId)` | Get supported scanner settings |\n\nThe scanner parameter configuration is based on [Dynamsoft Web TWAIN documentation](https://www.dynamsoft.com/web-twain/docs/info/api/Interfaces.html#DeviceConfiguration). \n\n\n### Document Methods\n\n| Method | Description |\n|--------|-------------|\n| `Future\u003cMap\u003cString, dynamic\u003e\u003e createDocument(String host, Map\u003cString, dynamic\u003e parameters)` | Create a document |\n| `Future\u003cMap\u003cString, dynamic\u003e\u003e getDocumentInfo(String host, String docId)` | Get document metadata |\n| `Future\u003cbool\u003e deleteDocument(String host, String docId)` | Delete a document |\n| `Future\u003cString\u003e getDocumentFile(String host, String docId, String directory)` | Download a document PDF to local disk |\n| `Future\u003cUint8List?\u003e getDocumentStream(String host, String docId)` | Get a document as a byte stream |\n| `Future\u003cMap\u003cString, dynamic\u003e\u003e insertPage(String host, String docId, Map\u003cString, dynamic\u003e parameters)` | Insert a new page into a document |\n| `Future\u003cbool\u003e deletePage(String host, String docId, String pageId)` | Delete a page from a document |\n\n\n## 🖥️ API Reference for Open Source TWAIN (Windows 64-bit only)\n\n### Scanner Methods\n\n| Method | Description |\n|--------|-------------|\n| `Future\u003cList\u003cString\u003e\u003e getDataSources()` | Get a list of TWAIN compatible scanners |\n| `Future\u003cList\u003cString\u003e\u003e scanDocument(int sourceIndex)` | Scan documents from a selected scanner |\n\n\n\n\n\n    ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyushulx%2Fflutter_twain_scanner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyushulx%2Fflutter_twain_scanner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyushulx%2Fflutter_twain_scanner/lists"}