DynamsoftService class

A service class for interacting with scanning devices and jobs.

Constructors

DynamsoftService.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

checkJob(String host, String jobId) Future<Map<String, dynamic>>
Checks the status of a scan job.
createDocument(String host, Map<String, dynamic> parameters) Future<Map<String, dynamic>>
Create a new document from scanned images.
createJob(String host, Map<String, dynamic> parameters) Future<Map<String, dynamic>>
Creates a new scan job using provided parameters.
deleteDocument(String host, String docId) Future<bool>
Delete a document.
deleteJob(String host, String jobId) Future<Map<String, dynamic>>
Deletes a scan job based on the provided job ID.
deletePage(String host, String docId, String pageId) Future<bool>
Delete a specific page from a document.
getDevices(String host, [int? scannerType]) Future<List>
Fetches the list of available scanners from Dynamic Web TWAIN Service.
getDocumentFile(String host, String docId, String directory) Future<String>
Download a document (PDF) and save it to the local directory.
getDocumentInfo(String host, String docId) Future<Map<String, dynamic>>
Get document metadata.
getDocumentStream(String host, String docId) Future<Uint8List?>
Get document content as byte stream.
getImageFiles(String host, String jobId, String directory) Future<List<String>>
Saves images from a scan job to a directory.
getImageInfo(String host, String jobId) Future<Map<String, dynamic>>
Get metadata for the next scanned image.
getImageStreams(String host, String jobId) Future<List<Uint8List>>
Retrieves images as byte streams from a scan job.
getScannerCapabilities(String host, String jobId) Future<Map<String, dynamic>>
Get scanner capability information.
getServerInfo(String host) Future<Map<String, dynamic>>
Fetches the server information from Dynamic Web TWAIN Service.
insertPage(String host, String docId, Map<String, dynamic> parameters) Future<Map<String, dynamic>>
Insert a page into a document.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
updateJob(String host, String jobId, Map<String, dynamic> parameters) Future<Map<String, dynamic>>
Updates an existing scan job (e.g., to cancel it).

Operators

operator ==(Object other) bool
The equality operator.
inherited