dwt 18.2.1 → 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.
@@ -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: PDFWSetting): void;
59
+ Setup(settings: PDFWSettings): void;
60
60
  }
61
- export interface PDFWSetting {
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 | void;
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
  /**
@@ -13,7 +13,7 @@
13
13
  *
14
14
  * Copyright 2022, Dynamsoft Corporation
15
15
  * Author: Dynamsoft Support Team
16
- * Version: 18.2
16
+ * Version: 18.3
17
17
  */
18
18
  import Dynamsoft from "./Dynamsoft";
19
19
  export default Dynamsoft;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dwt",
3
- "version": "18.2.1",
3
+ "version": "18.3.0",
4
4
  "author": {
5
5
  "name": "Dynamsoft",
6
6
  "url": "https://www.dynamsoft.com"