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,130 +1,130 @@
|
|
|
1
|
-
export interface FileUploader {
|
|
2
|
-
/**
|
|
3
|
-
* Initialize and create a FileUploader instance.
|
|
4
|
-
* @param URL Specify a path to retrieve the FileUploader library.
|
|
5
|
-
* @param successCallback A callback function that is executed if the request succeeds.
|
|
6
|
-
* @param failureCallback A callback function that is executed if the request fails.
|
|
7
|
-
* @argument uploadManager A FileUploader instance.
|
|
8
|
-
* @argument errorCode The error code.
|
|
9
|
-
* @argument errorString The error string.
|
|
10
|
-
*/
|
|
11
|
-
Init(
|
|
12
|
-
URL: string,
|
|
13
|
-
successCallback: (
|
|
14
|
-
uploadManager: UploadManager
|
|
15
|
-
) => void,
|
|
16
|
-
failureCallback: (
|
|
17
|
-
errorCode: number,
|
|
18
|
-
errorString: string
|
|
19
|
-
) => void
|
|
20
|
-
): void;
|
|
21
|
-
}
|
|
22
|
-
export interface UploadManager {
|
|
23
|
-
/**
|
|
24
|
-
* Create an upload job.
|
|
25
|
-
*/
|
|
26
|
-
CreateJob(): Job;
|
|
27
|
-
/**
|
|
28
|
-
* Start uploading (processing the specified job).
|
|
29
|
-
* @param job Specify the job.
|
|
30
|
-
*/
|
|
31
|
-
Run(job: Job): boolean;
|
|
32
|
-
/**
|
|
33
|
-
* Cancel a job.
|
|
34
|
-
* @param job Specify the job.
|
|
35
|
-
*/
|
|
36
|
-
Cancel(job: Job): boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Cancel all jobs.
|
|
39
|
-
*/
|
|
40
|
-
CancelAllUpload(): boolean;
|
|
41
|
-
}
|
|
42
|
-
export interface Job {
|
|
43
|
-
/**
|
|
44
|
-
* Specify the block size (in bytes). By default, it's 10240.
|
|
45
|
-
*/
|
|
46
|
-
BlockSize: number;
|
|
47
|
-
/**
|
|
48
|
-
* Specify the file name.
|
|
49
|
-
*/
|
|
50
|
-
FileName: string;
|
|
51
|
-
/**
|
|
52
|
-
* Specify the fields in the HTTP Post Form.
|
|
53
|
-
*/
|
|
54
|
-
FormField: FormField;
|
|
55
|
-
/**
|
|
56
|
-
* Specify custom HTTP Post request headers.
|
|
57
|
-
* Example: job.HttpHeader["Content-Type"] = "text/plain";
|
|
58
|
-
*/
|
|
59
|
-
HttpHeader: object;
|
|
60
|
-
/**
|
|
61
|
-
* Return the Http version.
|
|
62
|
-
*/
|
|
63
|
-
readonly HttpVersion: string;
|
|
64
|
-
/**
|
|
65
|
-
* A callback triggered when the job succeeds.
|
|
66
|
-
* @argument job Specify the job.
|
|
67
|
-
* @argument errorCode The error code.
|
|
68
|
-
* @argument errorString The error string.
|
|
69
|
-
*/
|
|
70
|
-
OnRunFailure: (
|
|
71
|
-
job: Job,
|
|
72
|
-
errorCode: number,
|
|
73
|
-
errorString: string
|
|
74
|
-
) => void;
|
|
75
|
-
/**
|
|
76
|
-
* A callback triggered when the job succeeds.
|
|
77
|
-
* @argument job Specify the job.
|
|
78
|
-
*/
|
|
79
|
-
OnRunSuccess: (job: Job) => void;
|
|
80
|
-
/**
|
|
81
|
-
* A callback triggered multiple times during the upload.
|
|
82
|
-
* @argument job Specify the job.
|
|
83
|
-
* @argument percentage Return the percentage.
|
|
84
|
-
*/
|
|
85
|
-
OnUploadTransferPercentage: (
|
|
86
|
-
job: Job,
|
|
87
|
-
percentage: number
|
|
88
|
-
) => void;
|
|
89
|
-
/**
|
|
90
|
-
* Specify the URL of the script to receive the upload.
|
|
91
|
-
*/
|
|
92
|
-
ServerUrl: string;
|
|
93
|
-
/**
|
|
94
|
-
* Specify the main content of the job, i.e. the file(s).
|
|
95
|
-
*/
|
|
96
|
-
SourceValue: SourceValue;
|
|
97
|
-
/**
|
|
98
|
-
* Specify the number of threads (<=4) for the upload.
|
|
99
|
-
*/
|
|
100
|
-
ThreadNum: number;
|
|
101
|
-
/**
|
|
102
|
-
* Return the version of the job.
|
|
103
|
-
*/
|
|
104
|
-
readonly Version: number;
|
|
105
|
-
}
|
|
106
|
-
export interface SourceValue {
|
|
107
|
-
/**
|
|
108
|
-
* Specify the block size. By default, it's 10240.
|
|
109
|
-
* @param source A URL to specify the content of the file.
|
|
110
|
-
* Normally it's generated by {GenerateURLForUploadData()}
|
|
111
|
-
* @param name Specify the name of the file.
|
|
112
|
-
* @param key Specify the key of the file in the request. This key can be used to retrieve the file content in server-side scripts.
|
|
113
|
-
*/
|
|
114
|
-
Add: (
|
|
115
|
-
source: string,
|
|
116
|
-
name: string,
|
|
117
|
-
key?: string
|
|
118
|
-
) => void;
|
|
119
|
-
}
|
|
120
|
-
export interface FormField {
|
|
121
|
-
/**
|
|
122
|
-
* Specify the block size. By default, it's 10240.
|
|
123
|
-
* @param key Specify the key of the field.
|
|
124
|
-
* @param value Sepcify the value of the field.
|
|
125
|
-
*/
|
|
126
|
-
Add: (
|
|
127
|
-
key: string,
|
|
128
|
-
value: string
|
|
129
|
-
) => void;
|
|
130
|
-
}
|
|
1
|
+
export interface FileUploader {
|
|
2
|
+
/**
|
|
3
|
+
* Initialize and create a FileUploader instance.
|
|
4
|
+
* @param URL Specify a path to retrieve the FileUploader library.
|
|
5
|
+
* @param successCallback A callback function that is executed if the request succeeds.
|
|
6
|
+
* @param failureCallback A callback function that is executed if the request fails.
|
|
7
|
+
* @argument uploadManager A FileUploader instance.
|
|
8
|
+
* @argument errorCode The error code.
|
|
9
|
+
* @argument errorString The error string.
|
|
10
|
+
*/
|
|
11
|
+
Init(
|
|
12
|
+
URL: string,
|
|
13
|
+
successCallback: (
|
|
14
|
+
uploadManager: UploadManager
|
|
15
|
+
) => void,
|
|
16
|
+
failureCallback: (
|
|
17
|
+
errorCode: number,
|
|
18
|
+
errorString: string
|
|
19
|
+
) => void
|
|
20
|
+
): void;
|
|
21
|
+
}
|
|
22
|
+
export interface UploadManager {
|
|
23
|
+
/**
|
|
24
|
+
* Create an upload job.
|
|
25
|
+
*/
|
|
26
|
+
CreateJob(): Job;
|
|
27
|
+
/**
|
|
28
|
+
* Start uploading (processing the specified job).
|
|
29
|
+
* @param job Specify the job.
|
|
30
|
+
*/
|
|
31
|
+
Run(job: Job): boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Cancel a job.
|
|
34
|
+
* @param job Specify the job.
|
|
35
|
+
*/
|
|
36
|
+
Cancel(job: Job): boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Cancel all jobs.
|
|
39
|
+
*/
|
|
40
|
+
CancelAllUpload(): boolean;
|
|
41
|
+
}
|
|
42
|
+
export interface Job {
|
|
43
|
+
/**
|
|
44
|
+
* Specify the block size (in bytes). By default, it's 10240.
|
|
45
|
+
*/
|
|
46
|
+
BlockSize: number;
|
|
47
|
+
/**
|
|
48
|
+
* Specify the file name.
|
|
49
|
+
*/
|
|
50
|
+
FileName: string;
|
|
51
|
+
/**
|
|
52
|
+
* Specify the fields in the HTTP Post Form.
|
|
53
|
+
*/
|
|
54
|
+
FormField: FormField;
|
|
55
|
+
/**
|
|
56
|
+
* Specify custom HTTP Post request headers.
|
|
57
|
+
* Example: job.HttpHeader["Content-Type"] = "text/plain";
|
|
58
|
+
*/
|
|
59
|
+
HttpHeader: object;
|
|
60
|
+
/**
|
|
61
|
+
* Return the Http version.
|
|
62
|
+
*/
|
|
63
|
+
readonly HttpVersion: string;
|
|
64
|
+
/**
|
|
65
|
+
* A callback triggered when the job succeeds.
|
|
66
|
+
* @argument job Specify the job.
|
|
67
|
+
* @argument errorCode The error code.
|
|
68
|
+
* @argument errorString The error string.
|
|
69
|
+
*/
|
|
70
|
+
OnRunFailure: (
|
|
71
|
+
job: Job,
|
|
72
|
+
errorCode: number,
|
|
73
|
+
errorString: string
|
|
74
|
+
) => void;
|
|
75
|
+
/**
|
|
76
|
+
* A callback triggered when the job succeeds.
|
|
77
|
+
* @argument job Specify the job.
|
|
78
|
+
*/
|
|
79
|
+
OnRunSuccess: (job: Job) => void;
|
|
80
|
+
/**
|
|
81
|
+
* A callback triggered multiple times during the upload.
|
|
82
|
+
* @argument job Specify the job.
|
|
83
|
+
* @argument percentage Return the percentage.
|
|
84
|
+
*/
|
|
85
|
+
OnUploadTransferPercentage: (
|
|
86
|
+
job: Job,
|
|
87
|
+
percentage: number
|
|
88
|
+
) => void;
|
|
89
|
+
/**
|
|
90
|
+
* Specify the URL of the script to receive the upload.
|
|
91
|
+
*/
|
|
92
|
+
ServerUrl: string;
|
|
93
|
+
/**
|
|
94
|
+
* Specify the main content of the job, i.e. the file(s).
|
|
95
|
+
*/
|
|
96
|
+
SourceValue: SourceValue;
|
|
97
|
+
/**
|
|
98
|
+
* Specify the number of threads (<=4) for the upload.
|
|
99
|
+
*/
|
|
100
|
+
ThreadNum: number;
|
|
101
|
+
/**
|
|
102
|
+
* Return the version of the job.
|
|
103
|
+
*/
|
|
104
|
+
readonly Version: number;
|
|
105
|
+
}
|
|
106
|
+
export interface SourceValue {
|
|
107
|
+
/**
|
|
108
|
+
* Specify the block size. By default, it's 10240.
|
|
109
|
+
* @param source A URL to specify the content of the file.
|
|
110
|
+
* Normally it's generated by {GenerateURLForUploadData()}
|
|
111
|
+
* @param name Specify the name of the file.
|
|
112
|
+
* @param key Specify the key of the file in the request. This key can be used to retrieve the file content in server-side scripts.
|
|
113
|
+
*/
|
|
114
|
+
Add: (
|
|
115
|
+
source: string,
|
|
116
|
+
name: string,
|
|
117
|
+
key?: string
|
|
118
|
+
) => void;
|
|
119
|
+
}
|
|
120
|
+
export interface FormField {
|
|
121
|
+
/**
|
|
122
|
+
* Specify the block size. By default, it's 10240.
|
|
123
|
+
* @param key Specify the key of the field.
|
|
124
|
+
* @param value Sepcify the value of the field.
|
|
125
|
+
*/
|
|
126
|
+
Add: (
|
|
127
|
+
key: string,
|
|
128
|
+
value: string
|
|
129
|
+
) => void;
|
|
130
|
+
}
|