dwt 18.2.0 → 18.3.0
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 +15 -15
- package/dist/dist/DynamsoftServiceSetup-arm64.deb +0 -0
- 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 +157 -140
- package/dist/dynamsoft.webtwain.min.mjs +157 -140
- package/dist/src/dynamsoft.lts.js +14 -14
- package/dist/src/dynamsoft.webtwain.viewer.css +3 -21
- package/dist/src/dynamsoft.webtwain.viewer.js +3 -3
- package/dist/types/Addon.PDF.d.ts +23 -2
- package/dist/types/WebTwain.Acquire.d.ts +1 -1
- package/dist/types/WebTwain.Viewer.d.ts +21 -0
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -56,9 +56,9 @@ export interface Write {
|
|
|
56
56
|
* Set up the PDF writing engine.
|
|
57
57
|
* @param settings Configures how the PDF is generated.
|
|
58
58
|
*/
|
|
59
|
-
Setup(settings:
|
|
59
|
+
Setup(settings: PDFWSettings): void;
|
|
60
60
|
}
|
|
61
|
-
export interface
|
|
61
|
+
export interface PDFWSettings {
|
|
62
62
|
/**
|
|
63
63
|
* Specify the author.
|
|
64
64
|
*/
|
|
@@ -116,4 +116,25 @@ export interface PDFWSetting {
|
|
|
116
116
|
* Only valid when the {compression} is 'JPEG' or 'JPEG2000'.
|
|
117
117
|
*/
|
|
118
118
|
quality?: number;
|
|
119
|
+
/**
|
|
120
|
+
* Reduce the file size when saving the image(s) as a PDF file.
|
|
121
|
+
*/
|
|
122
|
+
docCompressor?:{ //18.3
|
|
123
|
+
/**
|
|
124
|
+
* Enabled document compressor.
|
|
125
|
+
*/
|
|
126
|
+
enabled: boolean;
|
|
127
|
+
/**
|
|
128
|
+
* sensitivity
|
|
129
|
+
* The value ranges from 1 to 100. Default value is 50.
|
|
130
|
+
* Only valid when the {compression} is 'JPEG' or 'JPEG2000'.
|
|
131
|
+
*/
|
|
132
|
+
sensitivity?: number;
|
|
133
|
+
/**
|
|
134
|
+
* compressLevel
|
|
135
|
+
* The value ranges from 0 to 100. Default value is 50.
|
|
136
|
+
* Only valid when the {compression} is 'JPEG' or 'JPEG2000'.
|
|
137
|
+
*/
|
|
138
|
+
compressLevel?: number;
|
|
139
|
+
}
|
|
119
140
|
}
|
|
@@ -82,7 +82,7 @@ export interface WebTwainAcquire extends WebTwainEdit {
|
|
|
82
82
|
SelectSource(
|
|
83
83
|
successCallBack?: () => void,
|
|
84
84
|
failureCallBack?: (errorCode: number, errorString: string) => void
|
|
85
|
-
): boolean |
|
|
85
|
+
): boolean | string;
|
|
86
86
|
/**
|
|
87
87
|
* Bring up the Source Selection User Interface (UI) for the user to choose a data source.
|
|
88
88
|
* @param deviceType The device type. Added the parameter deviceType in Dynamic Web TWAIN 18
|
|
@@ -207,6 +207,13 @@ export interface DynamsoftViewer {
|
|
|
207
207
|
* [Description] Set whether to allow page dragging to reorder the pages.
|
|
208
208
|
*/
|
|
209
209
|
allowPageDragging?: boolean;
|
|
210
|
+
/**
|
|
211
|
+
* Set the zoom origin.
|
|
212
|
+
*/
|
|
213
|
+
zoomOrigin?: { //18.3
|
|
214
|
+
x: string; //Default is "center", values: "left", "right", "center".
|
|
215
|
+
y: string; //Default is "center", values: "top", "bottom", "center"
|
|
216
|
+
}
|
|
210
217
|
/**
|
|
211
218
|
* [Scope] Main viewer
|
|
212
219
|
* [Description] Return the index of the next image of the currently selected image.
|
|
@@ -423,6 +430,13 @@ export interface EditorSettings {
|
|
|
423
430
|
*/
|
|
424
431
|
dialogText?: any;
|
|
425
432
|
workMode?: number | DynamsoftEnumsDWT.EnumDWT_WorkMode;//default is normal value:normal=0, balance=1,
|
|
433
|
+
/**
|
|
434
|
+
* Set the zoom origin.
|
|
435
|
+
*/
|
|
436
|
+
zoomOrigin?: { //18.3
|
|
437
|
+
x: string; //Default is "center", values: "left", "right", "center".
|
|
438
|
+
y: string; //Default is "center", values: "top", "bottom", "center"
|
|
439
|
+
}
|
|
426
440
|
}
|
|
427
441
|
export interface ThumbnailViewerSettings {
|
|
428
442
|
/**
|
|
@@ -607,6 +621,13 @@ export interface ImageEditor {
|
|
|
607
621
|
* [Description] Update the changes in the ImageEditor to the server.
|
|
608
622
|
*/
|
|
609
623
|
save():Promise<void>;
|
|
624
|
+
/**
|
|
625
|
+
* Set the zoom origin.
|
|
626
|
+
*/
|
|
627
|
+
zoomOrigin?: {
|
|
628
|
+
x: string; //Default is "center", values: "left", "right", "center".
|
|
629
|
+
y: string; //Default is "center", values: "top", "bottom", "center"
|
|
630
|
+
};
|
|
610
631
|
}
|
|
611
632
|
export interface ThumbnailViewer {
|
|
612
633
|
/**
|
package/dist/types/index.d.ts
CHANGED