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,110 +1,110 @@
|
|
|
1
|
-
import { DynamsoftEnums as Dynamsoft } from "./Dynamsoft.Enum";
|
|
2
|
-
|
|
3
|
-
export interface PDF {
|
|
4
|
-
/**
|
|
5
|
-
* Convert the specified PDF file to image(s).
|
|
6
|
-
* @param path The path of the PDF file.
|
|
7
|
-
* @param successCallback A callback function that is executed if the request succeeds.
|
|
8
|
-
* @param failureCallback A callback function that is executed if the request fails.
|
|
9
|
-
* @argument errorCode The error code.
|
|
10
|
-
* @argument errorString The error string.
|
|
11
|
-
*/
|
|
12
|
-
ConvertToImage(
|
|
13
|
-
path: string,
|
|
14
|
-
resolution: number,
|
|
15
|
-
successCallback: () => void,
|
|
16
|
-
failureCallback: (
|
|
17
|
-
errorCode: number,
|
|
18
|
-
errorString: string
|
|
19
|
-
) => void
|
|
20
|
-
): void;
|
|
21
|
-
/**
|
|
22
|
-
* Return the convert mode.
|
|
23
|
-
*/
|
|
24
|
-
GetConvertMode(): number;
|
|
25
|
-
/**
|
|
26
|
-
* Return whether the PDF module has been installed.
|
|
27
|
-
*/
|
|
28
|
-
IsModuleInstalled(): boolean;
|
|
29
|
-
/**
|
|
30
|
-
* Detect whether a local PDF file is text based or not.
|
|
31
|
-
* @path Specify the path of the PDF file.
|
|
32
|
-
*/
|
|
33
|
-
IsTextBasedPDF(path: string): boolean;
|
|
34
|
-
/**
|
|
35
|
-
* Set the convert mode.
|
|
36
|
-
* @param mode Specify the mode.
|
|
37
|
-
*/
|
|
38
|
-
SetConvertMode(mode: Dynamsoft.EnumDWT_ConvertMode | number): boolean;
|
|
39
|
-
/**
|
|
40
|
-
* Set the password for reading encrypted PDF files.
|
|
41
|
-
* @param password Specify the password.
|
|
42
|
-
*/
|
|
43
|
-
SetPassword(password: string): boolean;
|
|
44
|
-
/**
|
|
45
|
-
* Set the resolution for rasterizing.
|
|
46
|
-
* @param resolution Specify the resolution.
|
|
47
|
-
*/
|
|
48
|
-
SetResolution(resolution: number): boolean;
|
|
49
|
-
/**
|
|
50
|
-
* Set up the PDF writing engine.
|
|
51
|
-
*/
|
|
52
|
-
Write: Write;
|
|
53
|
-
}
|
|
54
|
-
export interface Write {
|
|
55
|
-
/**
|
|
56
|
-
* Set up the PDF writing engine.
|
|
57
|
-
* @param settings Configures how the PDF is generated.
|
|
58
|
-
*/
|
|
59
|
-
Setup(settings: PDFWSetting): void;
|
|
60
|
-
}
|
|
61
|
-
export interface PDFWSetting {
|
|
62
|
-
/**
|
|
63
|
-
* Specify the author.
|
|
64
|
-
*/
|
|
65
|
-
author: string;
|
|
66
|
-
/**
|
|
67
|
-
* Specify the compression type.
|
|
68
|
-
*/
|
|
69
|
-
compression: Dynamsoft.EnumDWT_PDFCompressionType | number;
|
|
70
|
-
/**
|
|
71
|
-
* Specify the creator.
|
|
72
|
-
*/
|
|
73
|
-
creator: string;
|
|
74
|
-
/**
|
|
75
|
-
* Specify the creation date.
|
|
76
|
-
* Note that the argument should start with 'D:' like 'D:20181231'.
|
|
77
|
-
*/
|
|
78
|
-
creationDate: string;
|
|
79
|
-
/**
|
|
80
|
-
* Specify the key words.
|
|
81
|
-
*/
|
|
82
|
-
keyWords: string;
|
|
83
|
-
/**
|
|
84
|
-
* Specify the modified date.
|
|
85
|
-
* Note that the argument should start with 'D:' like 'D:20181231'.
|
|
86
|
-
*/
|
|
87
|
-
modifiedDate: string;
|
|
88
|
-
/**
|
|
89
|
-
* Specify the producer.
|
|
90
|
-
*/
|
|
91
|
-
producer: string;
|
|
92
|
-
/**
|
|
93
|
-
* Specify the subject.
|
|
94
|
-
*/
|
|
95
|
-
subject: string;
|
|
96
|
-
/**
|
|
97
|
-
* Specify the title.
|
|
98
|
-
*/
|
|
99
|
-
title: string;
|
|
100
|
-
/**
|
|
101
|
-
* Specify the PDF version. For example, '1.5'.
|
|
102
|
-
*/
|
|
103
|
-
version: string;
|
|
104
|
-
/**
|
|
105
|
-
* Specify the quality of the images in the file.
|
|
106
|
-
* The value ranges from 0 to 100.
|
|
107
|
-
* Only valid when the {compression} is 'JPEG' or 'JPEG2000'.
|
|
108
|
-
*/
|
|
109
|
-
quality: number;
|
|
110
|
-
}
|
|
1
|
+
import { DynamsoftEnums as Dynamsoft } from "./Dynamsoft.Enum";
|
|
2
|
+
|
|
3
|
+
export interface PDF {
|
|
4
|
+
/**
|
|
5
|
+
* Convert the specified PDF file to image(s).
|
|
6
|
+
* @param path The path of the PDF file.
|
|
7
|
+
* @param successCallback A callback function that is executed if the request succeeds.
|
|
8
|
+
* @param failureCallback A callback function that is executed if the request fails.
|
|
9
|
+
* @argument errorCode The error code.
|
|
10
|
+
* @argument errorString The error string.
|
|
11
|
+
*/
|
|
12
|
+
ConvertToImage(
|
|
13
|
+
path: string,
|
|
14
|
+
resolution: number,
|
|
15
|
+
successCallback: () => void,
|
|
16
|
+
failureCallback: (
|
|
17
|
+
errorCode: number,
|
|
18
|
+
errorString: string
|
|
19
|
+
) => void
|
|
20
|
+
): void;
|
|
21
|
+
/**
|
|
22
|
+
* Return the convert mode.
|
|
23
|
+
*/
|
|
24
|
+
GetConvertMode(): number;
|
|
25
|
+
/**
|
|
26
|
+
* Return whether the PDF module has been installed.
|
|
27
|
+
*/
|
|
28
|
+
IsModuleInstalled(): boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Detect whether a local PDF file is text based or not.
|
|
31
|
+
* @path Specify the path of the PDF file.
|
|
32
|
+
*/
|
|
33
|
+
IsTextBasedPDF(path: string): boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Set the convert mode.
|
|
36
|
+
* @param mode Specify the mode.
|
|
37
|
+
*/
|
|
38
|
+
SetConvertMode(mode: Dynamsoft.EnumDWT_ConvertMode | number): boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Set the password for reading encrypted PDF files.
|
|
41
|
+
* @param password Specify the password.
|
|
42
|
+
*/
|
|
43
|
+
SetPassword(password: string): boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Set the resolution for rasterizing.
|
|
46
|
+
* @param resolution Specify the resolution.
|
|
47
|
+
*/
|
|
48
|
+
SetResolution(resolution: number): boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Set up the PDF writing engine.
|
|
51
|
+
*/
|
|
52
|
+
Write: Write;
|
|
53
|
+
}
|
|
54
|
+
export interface Write {
|
|
55
|
+
/**
|
|
56
|
+
* Set up the PDF writing engine.
|
|
57
|
+
* @param settings Configures how the PDF is generated.
|
|
58
|
+
*/
|
|
59
|
+
Setup(settings: PDFWSetting): void;
|
|
60
|
+
}
|
|
61
|
+
export interface PDFWSetting {
|
|
62
|
+
/**
|
|
63
|
+
* Specify the author.
|
|
64
|
+
*/
|
|
65
|
+
author: string;
|
|
66
|
+
/**
|
|
67
|
+
* Specify the compression type.
|
|
68
|
+
*/
|
|
69
|
+
compression: Dynamsoft.EnumDWT_PDFCompressionType | number;
|
|
70
|
+
/**
|
|
71
|
+
* Specify the creator.
|
|
72
|
+
*/
|
|
73
|
+
creator: string;
|
|
74
|
+
/**
|
|
75
|
+
* Specify the creation date.
|
|
76
|
+
* Note that the argument should start with 'D:' like 'D:20181231'.
|
|
77
|
+
*/
|
|
78
|
+
creationDate: string;
|
|
79
|
+
/**
|
|
80
|
+
* Specify the key words.
|
|
81
|
+
*/
|
|
82
|
+
keyWords: string;
|
|
83
|
+
/**
|
|
84
|
+
* Specify the modified date.
|
|
85
|
+
* Note that the argument should start with 'D:' like 'D:20181231'.
|
|
86
|
+
*/
|
|
87
|
+
modifiedDate: string;
|
|
88
|
+
/**
|
|
89
|
+
* Specify the producer.
|
|
90
|
+
*/
|
|
91
|
+
producer: string;
|
|
92
|
+
/**
|
|
93
|
+
* Specify the subject.
|
|
94
|
+
*/
|
|
95
|
+
subject: string;
|
|
96
|
+
/**
|
|
97
|
+
* Specify the title.
|
|
98
|
+
*/
|
|
99
|
+
title: string;
|
|
100
|
+
/**
|
|
101
|
+
* Specify the PDF version. For example, '1.5'.
|
|
102
|
+
*/
|
|
103
|
+
version: string;
|
|
104
|
+
/**
|
|
105
|
+
* Specify the quality of the images in the file.
|
|
106
|
+
* The value ranges from 0 to 100.
|
|
107
|
+
* Only valid when the {compression} is 'JPEG' or 'JPEG2000'.
|
|
108
|
+
*/
|
|
109
|
+
quality: number;
|
|
110
|
+
}
|