dwt 18.5.1 → 19.0.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/LICENSE.txt +14 -10
- package/README.md +17 -19
- package/dist/dist/{DynamsoftServiceSetup.deb → DynamicWebTWAINServiceSetup-arm64.deb} +0 -0
- package/dist/dist/DynamicWebTWAINServiceSetup.deb +0 -0
- package/dist/dist/{DynamsoftServiceSetup.msi → DynamicWebTWAINServiceSetup.msi} +0 -0
- package/dist/dist/{DynamsoftServiceSetup.pkg → DynamicWebTWAINServiceSetup.pkg} +0 -0
- package/dist/dist/DynamicWebTWAINServiceSetup.rpm +0 -0
- package/dist/dynamsoft.webtwain.min.js +49 -61
- package/dist/dynamsoft.webtwain.min.mjs +49 -61
- package/dist/src/dynamsoft.lts.js +5 -4
- package/dist/src/dynamsoft.webtwain.css +18 -10
- package/dist/src/dynamsoft.webtwain.viewer.css +4 -4
- package/dist/src/dynamsoft.webtwain.viewer.js +4 -4
- package/dist/types/Addon.PDF.d.ts +10 -2
- package/dist/types/Dynamsoft.d.ts +1 -1
- package/dist/types/WebTwain.Buffer.d.ts +1 -1
- package/dist/types/WebTwain.Util.d.ts +4 -0
- package/dist/types/WebTwain.Viewer.d.ts +45 -4
- package/dist/types/index.d.ts +2 -2
- package/dwt-openapi.yaml +4459 -0
- package/package.json +2 -2
- package/dist/dist/DynamsoftServiceSetup-arm64.deb +0 -0
- package/dist/dist/DynamsoftServiceSetup.rpm +0 -0
|
@@ -32,6 +32,11 @@ export interface PDF {
|
|
|
32
32
|
* @path Specify the path of the PDF file.
|
|
33
33
|
*/
|
|
34
34
|
IsTextBasedPDF(path: string): boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Detect whether the local PDF file requires rasterization to be read.
|
|
37
|
+
* @path Specify the path of the PDF file.
|
|
38
|
+
*/
|
|
39
|
+
IsRasterizationRequired(path: string): boolean;
|
|
35
40
|
/**
|
|
36
41
|
* @deprecated since version 18.4. This function will be removed in future versions. Use `SetReaderOptions` instead.
|
|
37
42
|
* Set the convert mode.
|
|
@@ -186,6 +191,9 @@ export interface ReaderOptions {
|
|
|
186
191
|
* Whether or not to render in grayscale. Default value: false.
|
|
187
192
|
*/
|
|
188
193
|
renderGrayscale?: boolean;
|
|
189
|
-
}
|
|
190
|
-
|
|
194
|
+
};
|
|
195
|
+
/**
|
|
196
|
+
* Set whether to preserve the original size when saving an unedited PDF. Default value: false.
|
|
197
|
+
*/
|
|
198
|
+
preserveUnmodifiedOnSave?: boolean;
|
|
191
199
|
}
|
|
@@ -390,7 +390,7 @@ export interface DWTPro {
|
|
|
390
390
|
* @param event Specify the event.
|
|
391
391
|
* @param callback Specify the callback.
|
|
392
392
|
*/
|
|
393
|
-
RegisterEvent(event: string, callback: (...args: any[]) => void):
|
|
393
|
+
RegisterEvent(event: string, callback: (...args: any[]) => void): void;
|
|
394
394
|
/**
|
|
395
395
|
* Remove all authorizations for accessing local resources.
|
|
396
396
|
*/
|
|
@@ -210,7 +210,7 @@ export interface WebTwainBuffer extends WebTwainIO {
|
|
|
210
210
|
* @param index Specify the image.
|
|
211
211
|
*/
|
|
212
212
|
IsBlankImageAsync(index: number, options?: {
|
|
213
|
-
minBlockHeight?: number,//default value:
|
|
213
|
+
minBlockHeight?: number,//default value: 20
|
|
214
214
|
maxBlockHeight?: number //default value: 30
|
|
215
215
|
}): Promise < boolean > ;
|
|
216
216
|
/**
|
|
@@ -9,6 +9,10 @@ export interface WebTwainUtil {
|
|
|
9
9
|
* Return the error string.
|
|
10
10
|
*/
|
|
11
11
|
readonly ErrorString: string;
|
|
12
|
+
/**
|
|
13
|
+
* The reason for returning the error is an extension of the ErrorString.
|
|
14
|
+
*/
|
|
15
|
+
readonly ErrorCause: {code: number, message: string} | null;
|
|
12
16
|
/**
|
|
13
17
|
* Return or set the log level for debugging.
|
|
14
18
|
*/
|
|
@@ -232,6 +232,10 @@ export interface DynamsoftViewer {
|
|
|
232
232
|
x: string; //Default is "center", values: "left", "right", "center".
|
|
233
233
|
y: string; //Default is "center", values: "top", "bottom", "center"
|
|
234
234
|
}
|
|
235
|
+
/**
|
|
236
|
+
* Whether the viewer removes the focus border after selecting with the Tab key. Default value: true.
|
|
237
|
+
*/
|
|
238
|
+
disableFocusOutline: boolean; // default value: true
|
|
235
239
|
/**
|
|
236
240
|
* [Scope] Main viewer
|
|
237
241
|
* [Description] Return the index of the next image of the currently selected image.
|
|
@@ -700,7 +704,7 @@ export interface ThumbnailViewer {
|
|
|
700
704
|
* @param name Specify the event name.
|
|
701
705
|
* @param callback The event listener.
|
|
702
706
|
*/
|
|
703
|
-
|
|
707
|
+
on(eventName: string, callback: (event: ThumbnailViewerEvent | KeyboardEvent, domEvent?: MouseEvent) => void): void;
|
|
704
708
|
/**
|
|
705
709
|
* [Scope] Thumbnail viewer
|
|
706
710
|
* [Description] Remove the event handler.
|
|
@@ -882,17 +886,54 @@ export interface ViewerEvent {
|
|
|
882
886
|
}
|
|
883
887
|
export interface ThumbnailViewerEvent {
|
|
884
888
|
/**
|
|
885
|
-
* The index of the current
|
|
889
|
+
* The index of the current document page.
|
|
886
890
|
*/
|
|
887
891
|
index: number;
|
|
888
892
|
/**
|
|
889
|
-
* The x
|
|
893
|
+
* The mouse's x coordinate in the thumbnail image container relative to the top-left of the web page.
|
|
890
894
|
*/
|
|
891
895
|
pageX: number;
|
|
892
896
|
/**
|
|
893
|
-
* The y
|
|
897
|
+
* The mouse's y coordinate in the thumbnail image container relative to the top-left of the web page.
|
|
894
898
|
*/
|
|
895
899
|
pageY: number;
|
|
900
|
+
/**
|
|
901
|
+
* The width of the thumbnail image container.
|
|
902
|
+
*/
|
|
903
|
+
imageX: number;
|
|
904
|
+
/**
|
|
905
|
+
* The height of the thumbnail image container.
|
|
906
|
+
*/
|
|
907
|
+
imageY: number;
|
|
908
|
+
/**
|
|
909
|
+
* The corresponding x coordinate in the original image.
|
|
910
|
+
*/
|
|
911
|
+
pageHeight: number;
|
|
912
|
+
/**
|
|
913
|
+
* The corresponding y coordinate in the original image.
|
|
914
|
+
*/
|
|
915
|
+
pageWidth: number;
|
|
916
|
+
/**
|
|
917
|
+
* The thumbnail image container's relative position.
|
|
918
|
+
*/
|
|
919
|
+
position: {
|
|
920
|
+
/**
|
|
921
|
+
* The x coordinate relative to the container of the viewer.
|
|
922
|
+
*/
|
|
923
|
+
canvasOffsetX: number;
|
|
924
|
+
/**
|
|
925
|
+
* The y coordinate relative to the container of the viewer.
|
|
926
|
+
*/
|
|
927
|
+
canvasOffsetY: number;
|
|
928
|
+
/**
|
|
929
|
+
* The x coordinate relative to the canvas.
|
|
930
|
+
*/
|
|
931
|
+
containerOffsetX: number;
|
|
932
|
+
/**
|
|
933
|
+
* The y coordinate relative to the canvas.
|
|
934
|
+
*/
|
|
935
|
+
containerOffsetY: number;
|
|
936
|
+
}
|
|
896
937
|
}
|
|
897
938
|
export interface Area {
|
|
898
939
|
left: number;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
* Product: Dynamsoft Web Twain
|
|
12
12
|
* Web Site: http://www.dynamsoft.com
|
|
13
13
|
*
|
|
14
|
-
* Copyright
|
|
14
|
+
* Copyright 2025, Dynamsoft Corporation
|
|
15
15
|
* Author: Dynamsoft Support Team
|
|
16
|
-
* Version:
|
|
16
|
+
* Version: 19.0
|
|
17
17
|
*/
|
|
18
18
|
import Dynamsoft from "./Dynamsoft";
|
|
19
19
|
export default Dynamsoft;
|