dwt 16.2.4 → 16.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -12
- package/dist/addon/dbrjs/dbr-7.6.0.full.wasm.js +4016 -4016
- package/dist/addon/dbrjs/dbr-7.6.0.worker.js +107 -107
- package/dist/addon/dbrjs/dbr.js +10 -10
- package/dist/dist/DynamsoftServiceSetup.deb +0 -0
- package/dist/dist/DynamsoftServiceSetup.msi +0 -0
- package/dist/dist/DynamsoftServiceSetup.pkg +0 -0
- package/dist/dist/DynamsoftServiceSetup.rpm +0 -0
- package/dist/dist/LICENSE +95 -95
- package/dist/dynamsoft.webtwain.min.js +209 -209
- package/dist/dynamsoft.webtwain.min.mjs +208 -208
- package/dist/src/dynamsoft.imageio_wasm-1.6.2.js +93 -93
- package/dist/src/dynamsoft.webtwain.css +1045 -1045
- package/dist/types/Addon.BarcodeReader.d.ts +168 -168
- package/dist/types/Addon.Camera.d.ts +125 -125
- package/dist/types/Addon.OCR.d.ts +264 -264
- package/dist/types/Addon.OCRPro.d.ts +251 -251
- package/dist/types/Addon.PDF.d.ts +110 -110
- package/dist/types/Addon.Webcam.d.ts +257 -257
- package/dist/types/Dynamsoft.Enum.d.ts +1850 -1849
- package/dist/types/Dynamsoft.FileUploader.d.ts +130 -130
- package/dist/types/Dynamsoft.d.ts +495 -495
- package/dist/types/WebTwain.Acquire.d.ts +1059 -1059
- package/dist/types/WebTwain.Buffer.d.ts +259 -259
- package/dist/types/WebTwain.Edit.d.ts +434 -434
- package/dist/types/WebTwain.IO.d.ts +951 -951
- package/dist/types/WebTwain.Util.d.ts +102 -102
- package/dist/types/WebTwain.Viewer.d.ts +795 -795
- package/dist/types/WebTwain.d.ts +51 -51
- package/dist/types/index.d.ts +20 -20
- package/package.json +2 -2
- package/samples/1.AcquireImage.html +0 -69
- package/samples/2.CustomScan.html +0 -98
- package/samples/3.PDFRasterizer.html +0 -73
- package/samples/4.OCRADocument.html +0 -156
- package/samples/5.ReadBarcode.html +0 -231
- package/samples/6.ScanOrCapture.html +0 -189
|
@@ -1,102 +1,102 @@
|
|
|
1
|
-
import { DynamsoftEnums as Dynamsoft } from "./Dynamsoft.Enum";
|
|
2
|
-
|
|
3
|
-
export interface WebTwainUtil {
|
|
4
|
-
/**
|
|
5
|
-
* Return the error code.
|
|
6
|
-
*/
|
|
7
|
-
readonly ErrorCode: number;
|
|
8
|
-
/**
|
|
9
|
-
* Return the error string.
|
|
10
|
-
*/
|
|
11
|
-
readonly ErrorString: string;
|
|
12
|
-
/**
|
|
13
|
-
* Return or set the log level for debugging.
|
|
14
|
-
*/
|
|
15
|
-
LogLevel: number;
|
|
16
|
-
/**
|
|
17
|
-
* Manufacturer in the identity string of the Dynamic Web TWAIN library.
|
|
18
|
-
*/
|
|
19
|
-
readonly Manufacturer: string;
|
|
20
|
-
/**
|
|
21
|
-
* ProductFamily in the identity string of the Dynamic Web TWAIN library.
|
|
22
|
-
*/
|
|
23
|
-
readonly ProductFamily: string;
|
|
24
|
-
/**
|
|
25
|
-
* Return or set the ProductKey.
|
|
26
|
-
*/
|
|
27
|
-
ProductKey: string;
|
|
28
|
-
/**
|
|
29
|
-
* ProductName in the identity string of the Dynamic Web TWAIN library.
|
|
30
|
-
*/
|
|
31
|
-
readonly ProductName: string;
|
|
32
|
-
/**
|
|
33
|
-
* Generate a URL to be used by a FileUpoader instance to fetch the data to upload.
|
|
34
|
-
* @param indices Specify the images to upload.
|
|
35
|
-
* @param type Specify the file type.
|
|
36
|
-
* @param successCallback A callback function that is executed if the request succeeds.
|
|
37
|
-
* @param failureCallback A callback function that is executed if the request fails.
|
|
38
|
-
* @argument resultURL The generated URL.
|
|
39
|
-
* @argument indices The indices of the images.
|
|
40
|
-
* @argument type The file type.
|
|
41
|
-
*/
|
|
42
|
-
GenerateURLForUploadData(
|
|
43
|
-
indices: number[],
|
|
44
|
-
type: Dynamsoft.EnumDWT_ImageType | number,
|
|
45
|
-
successCallback: (
|
|
46
|
-
resultURL: string,
|
|
47
|
-
indices: number[],
|
|
48
|
-
type: Dynamsoft.EnumDWT_ImageType | number
|
|
49
|
-
) => void,
|
|
50
|
-
failureCallback: (
|
|
51
|
-
errorCode: number,
|
|
52
|
-
errorString: string
|
|
53
|
-
) => void
|
|
54
|
-
): void;
|
|
55
|
-
/**
|
|
56
|
-
* Specify an event listener for the specified built-in event.
|
|
57
|
-
* @param name Specify the event
|
|
58
|
-
* @param callback The event listener
|
|
59
|
-
*/
|
|
60
|
-
RegisterEvent(name: string, callback: (...arg: any[]) => void): boolean;
|
|
61
|
-
/**
|
|
62
|
-
* Set the language for the authorization dialogs.
|
|
63
|
-
* @param language Specify the language.
|
|
64
|
-
*/
|
|
65
|
-
SetLanguage(
|
|
66
|
-
language: Dynamsoft.EnumDWT_Language | number
|
|
67
|
-
): boolean;
|
|
68
|
-
/**
|
|
69
|
-
* Remove an event listener from the specified built-in event.
|
|
70
|
-
* @param name Specify the event
|
|
71
|
-
* @param callback The event listener
|
|
72
|
-
*/
|
|
73
|
-
UnregisterEvent(name: string, callback: () => void): boolean;
|
|
74
|
-
/**
|
|
75
|
-
* VersionInfo in the identity string of the Dynamic Web TWAIN library.
|
|
76
|
-
*/
|
|
77
|
-
readonly VersionInfo: string;
|
|
78
|
-
/**
|
|
79
|
-
* Update / set the ProductKey.
|
|
80
|
-
* @param productKey the ProductKey.
|
|
81
|
-
*/
|
|
82
|
-
SetProductKeyAsync(productKey: string): Promise<Authorization>;
|
|
83
|
-
/**
|
|
84
|
-
* Whether using ActiveX.
|
|
85
|
-
*/
|
|
86
|
-
isUsingActiveX(): boolean;
|
|
87
|
-
/**
|
|
88
|
-
* Return whether this webTwain instance is in Local-Service mode or WASM mode.
|
|
89
|
-
*/
|
|
90
|
-
UseLocalService: boolean;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
export interface Authorization {
|
|
94
|
-
/**
|
|
95
|
-
* The domain bound in the product key.
|
|
96
|
-
*/
|
|
97
|
-
Domain: string;
|
|
98
|
-
/**
|
|
99
|
-
* Details of the authorization.
|
|
100
|
-
*/
|
|
101
|
-
Detail: any;
|
|
102
|
-
}
|
|
1
|
+
import { DynamsoftEnums as Dynamsoft } from "./Dynamsoft.Enum";
|
|
2
|
+
|
|
3
|
+
export interface WebTwainUtil {
|
|
4
|
+
/**
|
|
5
|
+
* Return the error code.
|
|
6
|
+
*/
|
|
7
|
+
readonly ErrorCode: number;
|
|
8
|
+
/**
|
|
9
|
+
* Return the error string.
|
|
10
|
+
*/
|
|
11
|
+
readonly ErrorString: string;
|
|
12
|
+
/**
|
|
13
|
+
* Return or set the log level for debugging.
|
|
14
|
+
*/
|
|
15
|
+
LogLevel: number;
|
|
16
|
+
/**
|
|
17
|
+
* Manufacturer in the identity string of the Dynamic Web TWAIN library.
|
|
18
|
+
*/
|
|
19
|
+
readonly Manufacturer: string;
|
|
20
|
+
/**
|
|
21
|
+
* ProductFamily in the identity string of the Dynamic Web TWAIN library.
|
|
22
|
+
*/
|
|
23
|
+
readonly ProductFamily: string;
|
|
24
|
+
/**
|
|
25
|
+
* Return or set the ProductKey.
|
|
26
|
+
*/
|
|
27
|
+
ProductKey: string;
|
|
28
|
+
/**
|
|
29
|
+
* ProductName in the identity string of the Dynamic Web TWAIN library.
|
|
30
|
+
*/
|
|
31
|
+
readonly ProductName: string;
|
|
32
|
+
/**
|
|
33
|
+
* Generate a URL to be used by a FileUpoader instance to fetch the data to upload.
|
|
34
|
+
* @param indices Specify the images to upload.
|
|
35
|
+
* @param type Specify the file type.
|
|
36
|
+
* @param successCallback A callback function that is executed if the request succeeds.
|
|
37
|
+
* @param failureCallback A callback function that is executed if the request fails.
|
|
38
|
+
* @argument resultURL The generated URL.
|
|
39
|
+
* @argument indices The indices of the images.
|
|
40
|
+
* @argument type The file type.
|
|
41
|
+
*/
|
|
42
|
+
GenerateURLForUploadData(
|
|
43
|
+
indices: number[],
|
|
44
|
+
type: Dynamsoft.EnumDWT_ImageType | number,
|
|
45
|
+
successCallback: (
|
|
46
|
+
resultURL: string,
|
|
47
|
+
indices: number[],
|
|
48
|
+
type: Dynamsoft.EnumDWT_ImageType | number
|
|
49
|
+
) => void,
|
|
50
|
+
failureCallback: (
|
|
51
|
+
errorCode: number,
|
|
52
|
+
errorString: string
|
|
53
|
+
) => void
|
|
54
|
+
): void;
|
|
55
|
+
/**
|
|
56
|
+
* Specify an event listener for the specified built-in event.
|
|
57
|
+
* @param name Specify the event
|
|
58
|
+
* @param callback The event listener
|
|
59
|
+
*/
|
|
60
|
+
RegisterEvent(name: string, callback: (...arg: any[]) => void): boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Set the language for the authorization dialogs.
|
|
63
|
+
* @param language Specify the language.
|
|
64
|
+
*/
|
|
65
|
+
SetLanguage(
|
|
66
|
+
language: Dynamsoft.EnumDWT_Language | number
|
|
67
|
+
): boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Remove an event listener from the specified built-in event.
|
|
70
|
+
* @param name Specify the event
|
|
71
|
+
* @param callback The event listener
|
|
72
|
+
*/
|
|
73
|
+
UnregisterEvent(name: string, callback: () => void): boolean;
|
|
74
|
+
/**
|
|
75
|
+
* VersionInfo in the identity string of the Dynamic Web TWAIN library.
|
|
76
|
+
*/
|
|
77
|
+
readonly VersionInfo: string;
|
|
78
|
+
/**
|
|
79
|
+
* Update / set the ProductKey.
|
|
80
|
+
* @param productKey the ProductKey.
|
|
81
|
+
*/
|
|
82
|
+
SetProductKeyAsync(productKey: string): Promise<Authorization>;
|
|
83
|
+
/**
|
|
84
|
+
* Whether using ActiveX.
|
|
85
|
+
*/
|
|
86
|
+
isUsingActiveX(): boolean;
|
|
87
|
+
/**
|
|
88
|
+
* Return whether this webTwain instance is in Local-Service mode or WASM mode.
|
|
89
|
+
*/
|
|
90
|
+
UseLocalService: boolean;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export interface Authorization {
|
|
94
|
+
/**
|
|
95
|
+
* The domain bound in the product key.
|
|
96
|
+
*/
|
|
97
|
+
Domain: string;
|
|
98
|
+
/**
|
|
99
|
+
* Details of the authorization.
|
|
100
|
+
*/
|
|
101
|
+
Detail: any;
|
|
102
|
+
}
|