dwt 17.2.2 → 17.2.5
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 +19 -16
- package/README.md +16 -16
- package/dist/addon/dbrjs/dbr-8.6.1.full.wasm.js +134 -134
- package/dist/addon/dbrjs/dbr-8.6.1.worker.js +113 -113
- package/dist/addon/dbrjs/dbr.js +10 -10
- package/dist/dynamsoft.webtwain.min.js +149 -141
- package/dist/dynamsoft.webtwain.min.mjs +151 -142
- package/dist/src/{dynamsoft.crypto-1.7.2.wasm → dynamsoft.crypto-1.7.2.2.wasm} +0 -0
- package/dist/src/{dynamsoft.imageProc-1.7.2.wasm → dynamsoft.imageProc-1.7.2.2.wasm} +0 -0
- package/dist/src/{dynamsoft.imageProc-sn-1.7.2.wasm → dynamsoft.imageProc-sn-1.7.2.2.wasm} +0 -0
- package/dist/src/{dynamsoft.imagecore-1.7.2.wasm → dynamsoft.imagecore-1.7.2.2.wasm} +0 -0
- package/dist/src/dynamsoft.imageio-1.7.2.2.wasm +0 -0
- package/dist/src/dynamsoft.imageio_wasm-1.7.2.2.js +115 -0
- package/dist/src/{dynamsoft.pdfReader-1.7.2.wasm → dynamsoft.pdfReader-1.7.2.2.wasm} +0 -0
- package/dist/src/{dynamsoft.pdfReader_wasm-1.7.2.js → dynamsoft.pdfReader_wasm-1.7.2.2.js} +4 -4
- package/dist/src/{dynamsoft.pdfWriter-1.7.2.wasm → dynamsoft.pdfWriter-1.7.2.2.wasm} +0 -0
- package/dist/src/dynamsoft.viewer.css +1 -1
- package/dist/src/dynamsoft.viewer.js +2 -2
- package/dist/src/dynamsoft.webtwain.css +1 -1
- package/dist/src/fastcomp/{dynamsoft.crypto-1.7.2.wasm → dynamsoft.crypto-1.7.2.2.wasm} +0 -0
- package/dist/src/fastcomp/{dynamsoft.imageProc-1.7.2.wasm → dynamsoft.imageProc-1.7.2.2.wasm} +0 -0
- package/dist/src/fastcomp/{dynamsoft.imagecore-1.7.2.wasm → dynamsoft.imagecore-1.7.2.2.wasm} +0 -0
- package/dist/src/fastcomp/dynamsoft.imageio-1.7.2.2.wasm +0 -0
- package/dist/src/fastcomp/dynamsoft.imageio_wasm-1.7.2.2.js +115 -0
- package/dist/src/fastcomp/{dynamsoft.pdfWriter-1.7.2.wasm → dynamsoft.pdfWriter-1.7.2.2.wasm} +0 -0
- package/dist/types/Addon.Camera.d.ts +8 -8
- package/dist/types/Addon.PDF.d.ts +20 -11
- package/dist/types/Dynamsoft.d.ts +5 -5
- package/dist/types/WebTwain.Acquire.d.ts +26 -16
- package/dist/types/WebTwain.Buffer.d.ts +17 -3
- package/dist/types/WebTwain.IO.d.ts +1 -1
- package/dist/types/WebTwain.Util.d.ts +1 -1
- package/dist/types/WebTwain.Viewer.d.ts +5 -5
- package/dist/types/tsconfig.json +0 -1
- package/package.json +2 -2
- package/samples/{1.AcquireImage.html → AcquireImage.html} +1 -1
- package/samples/{2.CustomScan.html → CustomScan.html} +1 -1
- package/samples/{5.Edit.html → Edit.html} +1 -1
- package/samples/{3.LoadAndSaveImages.html → LoadAndSaveImages.html} +1 -1
- package/samples/{6.Navigation.html → Navigation.html} +1 -1
- package/samples/{4.PDFRasterizer.html → PDFRasterizer.html} +1 -1
- package/samples/{9.ReadBarcode.html → ReadBarcode.html} +1 -1
- package/samples/{10.ScanOrCapture.html → ScanOrCapture.html} +1 -1
- package/samples/{7.Thumbnail.html → Thumbnail.html} +1 -1
- package/samples/{11.mobilebrowsercapture.html → mobilebrowsercapture.html} +3 -0
- package/dist/src/dynamsoft.imageio-1.7.2.wasm +0 -0
- package/dist/src/dynamsoft.imageio_wasm-1.7.2.js +0 -115
- package/dist/src/fastcomp/dynamsoft.imageio-1.7.2.wasm +0 -0
- package/dist/src/fastcomp/dynamsoft.imageio_wasm-1.7.2.js +0 -115
- package/samples/8.OCRADocument.html +0 -160
package/dist/src/fastcomp/{dynamsoft.pdfWriter-1.7.2.wasm → dynamsoft.pdfWriter-1.7.2.2.wasm}
RENAMED
|
File without changes
|
|
@@ -88,15 +88,15 @@ export interface Camera {
|
|
|
88
88
|
closeVideo(): void;
|
|
89
89
|
/**
|
|
90
90
|
* Specify an event listener for the specified built-in viewer event.
|
|
91
|
-
* @param
|
|
91
|
+
* @param eventName Specify the event name.
|
|
92
92
|
* @param callback The event listener.
|
|
93
93
|
*/
|
|
94
|
-
on(
|
|
94
|
+
on(eventName: string, callback: (...param: any[]) => void): void;
|
|
95
95
|
/**
|
|
96
96
|
* Remove a built-in viewer event handler.
|
|
97
97
|
* @param eventName Specify the event name.
|
|
98
98
|
*/
|
|
99
|
-
off(eventName: string, callback?: (
|
|
99
|
+
off(eventName: string, callback?: (...param: any[]) => void): void;
|
|
100
100
|
}
|
|
101
101
|
export interface DeviceInfo {
|
|
102
102
|
deviceId: string;
|
|
@@ -177,11 +177,11 @@ export interface ScanConfiguration {
|
|
|
177
177
|
visibility?: boolean; //Whether to display the load local file icon. The default value is true.
|
|
178
178
|
};
|
|
179
179
|
|
|
180
|
-
funcConfirmExitContinuousScan?: (bExistImage: boolean) =>
|
|
180
|
+
funcConfirmExitContinuousScan?: (bExistImage: boolean) => boolean;
|
|
181
181
|
//funcConfirmExitContinuousScan is the callback funtion
|
|
182
182
|
//Return true:Exit continuous scan mode without saving the captured image data. Return false: Stay on the original viewer
|
|
183
183
|
|
|
184
|
-
funcConfirmExit?: (bExistImage: boolean) =>
|
|
184
|
+
funcConfirmExit?: (bExistImage: boolean) => boolean;
|
|
185
185
|
//funcConfirmExit is the callback funtion,
|
|
186
186
|
//Return true:End this capture without saving the image data. Return false: Stay on the original viewer
|
|
187
187
|
};
|
|
@@ -202,12 +202,12 @@ export interface ScanConfiguration {
|
|
|
202
202
|
visibility?: boolean; //Whether to display the rotate left icon. The default value is true.
|
|
203
203
|
};
|
|
204
204
|
|
|
205
|
-
|
|
206
|
-
|
|
205
|
+
filter?: {
|
|
206
|
+
visibility?: boolean; //Whether to display the filter icon. The default value is true.
|
|
207
207
|
valueList?:any;
|
|
208
208
|
defaultValue?: string; //Filter selected by default. By default, the original filter is selected.
|
|
209
209
|
};
|
|
210
|
-
exitDocumentScanAfterSave
|
|
210
|
+
exitDocumentScanAfterSave?: boolean; //The default value is false.
|
|
211
211
|
};
|
|
212
212
|
|
|
213
213
|
cropViewer?: {
|
|
@@ -62,49 +62,58 @@ export interface PDFWSetting {
|
|
|
62
62
|
/**
|
|
63
63
|
* Specify the author.
|
|
64
64
|
*/
|
|
65
|
-
author
|
|
65
|
+
author?: string;
|
|
66
66
|
/**
|
|
67
67
|
* Specify the compression type.
|
|
68
68
|
*/
|
|
69
|
-
compression
|
|
69
|
+
compression?: DynamsoftEnumsDWT.EnumDWT_PDFCompressionType | number;
|
|
70
70
|
/**
|
|
71
|
+
* Specify the page type.
|
|
72
|
+
* 0: page width&height decided by image
|
|
73
|
+
* 2: A4
|
|
74
|
+
* 4: A3
|
|
75
|
+
* 6: Letter
|
|
76
|
+
* 8: Legal
|
|
77
|
+
*/
|
|
78
|
+
pageType?: number;
|
|
79
|
+
/**
|
|
71
80
|
* Specify the creator.
|
|
72
81
|
*/
|
|
73
|
-
creator
|
|
82
|
+
creator?: string;
|
|
74
83
|
/**
|
|
75
84
|
* Specify the creation date.
|
|
76
85
|
* Note that the argument should start with 'D:' like 'D:20181231'.
|
|
77
86
|
*/
|
|
78
|
-
creationDate
|
|
87
|
+
creationDate?: string;
|
|
79
88
|
/**
|
|
80
89
|
* Specify the key words.
|
|
81
90
|
*/
|
|
82
|
-
keyWords
|
|
91
|
+
keyWords?: string;
|
|
83
92
|
/**
|
|
84
93
|
* Specify the modified date.
|
|
85
94
|
* Note that the argument should start with 'D:' like 'D:20181231'.
|
|
86
95
|
*/
|
|
87
|
-
modifiedDate
|
|
96
|
+
modifiedDate?: string;
|
|
88
97
|
/**
|
|
89
98
|
* Specify the producer.
|
|
90
99
|
*/
|
|
91
|
-
producer
|
|
100
|
+
producer?: string;
|
|
92
101
|
/**
|
|
93
102
|
* Specify the subject.
|
|
94
103
|
*/
|
|
95
|
-
subject
|
|
104
|
+
subject?: string;
|
|
96
105
|
/**
|
|
97
106
|
* Specify the title.
|
|
98
107
|
*/
|
|
99
|
-
title
|
|
108
|
+
title?: string;
|
|
100
109
|
/**
|
|
101
110
|
* Specify the PDF version. For example, '1.5'.
|
|
102
111
|
*/
|
|
103
|
-
version
|
|
112
|
+
version?: string;
|
|
104
113
|
/**
|
|
105
114
|
* Specify the quality of the images in the file.
|
|
106
115
|
* The value ranges from 0 to 100.
|
|
107
116
|
* Only valid when the {compression} is 'JPEG' or 'JPEG2000'.
|
|
108
117
|
*/
|
|
109
|
-
quality
|
|
118
|
+
quality?: number;
|
|
110
119
|
}
|
|
@@ -333,23 +333,23 @@ export interface DWTPro {
|
|
|
333
333
|
/**
|
|
334
334
|
* A callback function that is executed when the WebTwain related files are not found.
|
|
335
335
|
*/
|
|
336
|
-
OnWebTwainNotFound: () =>
|
|
336
|
+
OnWebTwainNotFound: () => void;
|
|
337
337
|
/**
|
|
338
338
|
* A callback function that is executed after a time-consuming operation.
|
|
339
339
|
*/
|
|
340
|
-
OnWebTwainPostExecute: () =>
|
|
340
|
+
OnWebTwainPostExecute: () => void;
|
|
341
341
|
/**
|
|
342
342
|
* A callback function that is executed before a time-consuming operation.
|
|
343
343
|
*/
|
|
344
|
-
OnWebTwainPreExecute: () =>
|
|
344
|
+
OnWebTwainPreExecute: () => void;
|
|
345
345
|
/**
|
|
346
346
|
* A callback function that is executed when a WebTwain instance is created.
|
|
347
347
|
*/
|
|
348
|
-
OnWebTwainReady: () =>
|
|
348
|
+
OnWebTwainReady: () => void;
|
|
349
349
|
/**
|
|
350
350
|
* A callback function that is executed right before the creation of a WebTwain instance.
|
|
351
351
|
*/
|
|
352
|
-
OnWebTwainWillInit: () =>
|
|
352
|
+
OnWebTwainWillInit: () => void;
|
|
353
353
|
/**
|
|
354
354
|
* The version of the PDF module (not the rasterizer).
|
|
355
355
|
*/
|
|
@@ -84,14 +84,8 @@ export interface WebTwainAcquire extends WebTwainEdit {
|
|
|
84
84
|
): boolean | void;
|
|
85
85
|
/**
|
|
86
86
|
* Bring up the Source Selection User Interface (UI) for the user to choose a data source.
|
|
87
|
-
* @param successCallback A callback function that is executed if the request succeeds.
|
|
88
|
-
* @param failureCallback A callback function that is executed if the request fails.
|
|
89
|
-
* @argument errorCode The error code.
|
|
90
|
-
* @argument errorString The error string.
|
|
91
87
|
*/
|
|
92
88
|
SelectSourceAsync(
|
|
93
|
-
successCallBack?: () => void,
|
|
94
|
-
failureCallBack?: (errorCode: number, errorString: string) => void
|
|
95
89
|
): Promise<boolean>;
|
|
96
90
|
/**
|
|
97
91
|
* Select a data source by its index.
|
|
@@ -653,6 +647,21 @@ export interface DeviceConfiguration {
|
|
|
653
647
|
* How much extended information is retrieved. Only valid when {IfGetExtImageInfo} is true.
|
|
654
648
|
*/
|
|
655
649
|
extendedImageInfoQueryLevel?: number;
|
|
650
|
+
/**
|
|
651
|
+
* Whether to simulate the manufacturer's UI inside the client-side browser (only effective when IfShowUI is true).
|
|
652
|
+
* (Added in 16.2)
|
|
653
|
+
*/
|
|
654
|
+
RemoteScan?:boolean;
|
|
655
|
+
/**
|
|
656
|
+
* Whether to simulate the manufacturer's UI inside the client-side browser (only effective when IfShowUI and RemoteScan are both true and the WebTwain instance doing the scan has no viewer of its own).
|
|
657
|
+
* (Added in 16.2)
|
|
658
|
+
*/
|
|
659
|
+
ShowRemoteScanUI?:boolean;
|
|
660
|
+
/**
|
|
661
|
+
* Specify a source by its index.
|
|
662
|
+
* (Added in 16.2)
|
|
663
|
+
*/
|
|
664
|
+
SelectSourceByIndex?: number;
|
|
656
665
|
}
|
|
657
666
|
export interface SourceDetails {
|
|
658
667
|
/**
|
|
@@ -982,23 +991,23 @@ export interface CapabilityDetails {
|
|
|
982
991
|
/**
|
|
983
992
|
* The container type of the Capability
|
|
984
993
|
*/
|
|
985
|
-
conType
|
|
994
|
+
conType?: ValueAndLabel;
|
|
986
995
|
/**
|
|
987
996
|
* The index for the current value of the Capability
|
|
988
997
|
*/
|
|
989
|
-
curIndex
|
|
998
|
+
curIndex?: number;
|
|
990
999
|
/**
|
|
991
1000
|
* The current value of the Capability
|
|
992
1001
|
*/
|
|
993
|
-
curValue
|
|
1002
|
+
curValue?: ValueAndLabel;
|
|
994
1003
|
/**
|
|
995
1004
|
* The index for the default value of the Capability
|
|
996
1005
|
*/
|
|
997
|
-
defIndex
|
|
1006
|
+
defIndex?: number;
|
|
998
1007
|
/**
|
|
999
1008
|
* The operation types that are supported by the Capability. Types include {"get", "set", "reset" "getdefault", "getcurrent"}
|
|
1000
1009
|
*/
|
|
1001
|
-
query
|
|
1010
|
+
query?: string[];
|
|
1002
1011
|
/**
|
|
1003
1012
|
* The value type of the Capability. Value types include
|
|
1004
1013
|
* TWTY_BOOL: 6
|
|
@@ -1015,21 +1024,22 @@ export interface CapabilityDetails {
|
|
|
1015
1024
|
* TWTY_UINT16: 4
|
|
1016
1025
|
* TWTY_int: 5
|
|
1017
1026
|
*/
|
|
1018
|
-
valueType
|
|
1027
|
+
valueType?: ValueAndLabel;
|
|
1019
1028
|
/**
|
|
1020
1029
|
* The available values of the Capability
|
|
1021
1030
|
*/
|
|
1022
|
-
values
|
|
1031
|
+
values?: ValueAndLabel[];
|
|
1023
1032
|
}
|
|
1024
1033
|
export interface ValueAndLabel {
|
|
1025
1034
|
/**
|
|
1026
1035
|
* Numeric representation of the item
|
|
1027
1036
|
*/
|
|
1028
|
-
value
|
|
1037
|
+
value?: DynamsoftEnumsDWT.EnumDWT_Cap | DynamsoftEnumsDWT.EnumDWT_CapType | DynamsoftEnumsDWT.EnumDWT_CapValueType | number;
|
|
1029
1038
|
/**
|
|
1030
1039
|
* Label or name of the item
|
|
1031
1040
|
*/
|
|
1032
|
-
label
|
|
1041
|
+
label?: string;
|
|
1042
|
+
[key:string]:any;
|
|
1033
1043
|
}
|
|
1034
1044
|
export interface Capabilities {
|
|
1035
1045
|
/**
|
|
@@ -1049,7 +1059,7 @@ export interface CapabilitySetup {
|
|
|
1049
1059
|
/**
|
|
1050
1060
|
* The value to set to the capability or the value of the capability after setting.
|
|
1051
1061
|
*/
|
|
1052
|
-
curValue: number | string;
|
|
1062
|
+
curValue: number | string | object;
|
|
1053
1063
|
errorCode?: number;
|
|
1054
1064
|
errorString?: string;
|
|
1055
1065
|
/**
|
|
@@ -265,12 +265,12 @@ export interface WebTwainBuffer extends WebTwainIO {
|
|
|
265
265
|
/**
|
|
266
266
|
* Get the status of the tags.
|
|
267
267
|
*/
|
|
268
|
-
GetTagList():
|
|
268
|
+
GetTagList(): TagInfo[];
|
|
269
269
|
/**
|
|
270
270
|
* Get the status of the tags for a specific image.
|
|
271
271
|
* @param index Specify one image.
|
|
272
272
|
*/
|
|
273
|
-
GetTagListByIndex(index:number):
|
|
273
|
+
GetTagListByIndex(index:number): TagName[];
|
|
274
274
|
/**
|
|
275
275
|
* Get the current file name.
|
|
276
276
|
*/
|
|
@@ -293,5 +293,19 @@ export interface WebTwainBuffer extends WebTwainIO {
|
|
|
293
293
|
/**
|
|
294
294
|
* Get the info of the all files.
|
|
295
295
|
*/
|
|
296
|
-
GetFileInfoList():
|
|
296
|
+
GetFileInfoList(): FileInfo[];
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
export interface TagName {
|
|
300
|
+
name: string;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
export interface TagInfo {
|
|
304
|
+
name: string;
|
|
305
|
+
imageIds: number[];
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
export interface FileInfo {
|
|
309
|
+
name: string;
|
|
310
|
+
imageIds: number[];
|
|
297
311
|
}
|
|
@@ -79,7 +79,7 @@ export interface WebTwainIO extends WebTwainUtil {
|
|
|
79
79
|
/**
|
|
80
80
|
* Return or set the compression type of PDF files. This is a runtime property.
|
|
81
81
|
*/
|
|
82
|
-
PDFCompressionType: DynamsoftEnumsDWT.EnumDWT_PDFCompressionType;
|
|
82
|
+
PDFCompressionType: DynamsoftEnumsDWT.EnumDWT_PDFCompressionType | number;
|
|
83
83
|
/**
|
|
84
84
|
* Return or set the date when the PDF document is created.
|
|
85
85
|
*/
|
|
@@ -70,7 +70,7 @@ export interface WebTwainUtil {
|
|
|
70
70
|
* @param name Specify the event
|
|
71
71
|
* @param callback The event listener
|
|
72
72
|
*/
|
|
73
|
-
UnregisterEvent(name: string, callback:
|
|
73
|
+
UnregisterEvent(name: string, callback?: (...arg: any[]) => void): boolean;
|
|
74
74
|
/**
|
|
75
75
|
* VersionInfo in the identity string of the Dynamic Web TWAIN library.
|
|
76
76
|
*/
|
|
@@ -277,7 +277,7 @@ export interface DynamsoftViewer {
|
|
|
277
277
|
* [Description] Fit the image to the window
|
|
278
278
|
* @param type Specify a type to fit. (width, height, both)
|
|
279
279
|
*/
|
|
280
|
-
fitWindow(type
|
|
280
|
+
fitWindow(type?: 'height' | 'width'): void;
|
|
281
281
|
/**
|
|
282
282
|
* [Description] Set the CSS class name of the specified button defined in updateUISetting.
|
|
283
283
|
* @param name Specify the button.
|
|
@@ -329,14 +329,14 @@ export interface DynamsoftViewer {
|
|
|
329
329
|
* @param name Specify the event name.
|
|
330
330
|
* @param callback The event listener
|
|
331
331
|
*/
|
|
332
|
-
on(
|
|
332
|
+
on(eventName: string, callback: (...param: any[]) => void): void;
|
|
333
333
|
/**
|
|
334
334
|
* [Scope] Main viewer
|
|
335
335
|
* [Description] Remove the event handler.
|
|
336
336
|
* @param eventName Specify the event name.
|
|
337
337
|
* @param callback The event listener.
|
|
338
338
|
*/
|
|
339
|
-
|
|
339
|
+
off(eventName: string, callback?: (...param: any[]) => void): void;
|
|
340
340
|
}
|
|
341
341
|
export interface EditorSettings {
|
|
342
342
|
/**
|
|
@@ -607,14 +607,14 @@ export interface ThumbnailViewer {
|
|
|
607
607
|
* @param name Specify the event name.
|
|
608
608
|
* @param callback The event listener.
|
|
609
609
|
*/
|
|
610
|
-
|
|
610
|
+
on(eventName: string, callback: (...param: any[]) => void): void;
|
|
611
611
|
/**
|
|
612
612
|
* [Scope] Thumbnail viewer
|
|
613
613
|
* [Description] Remove the event handler.
|
|
614
614
|
* @param eventName Specify the event name.
|
|
615
615
|
* @param callback The event listener.
|
|
616
616
|
*/
|
|
617
|
-
|
|
617
|
+
off(eventName: string, callback?: (...param: any[]) => void): void;
|
|
618
618
|
/**
|
|
619
619
|
* [Scope] Thumbnail viewer
|
|
620
620
|
* [Description] Where to put the thumbnail view. The allowed values are left, top, right, bottom. The default value is left.
|
package/dist/types/tsconfig.json
CHANGED
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dwt",
|
|
3
|
-
"version": "17.2.
|
|
3
|
+
"version": "17.2.5",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "Dynamsoft",
|
|
6
6
|
"url": "https://www.dynamsoft.com"
|
|
7
7
|
},
|
|
8
8
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"dynamsoft-javascript-barcode": "8.
|
|
10
|
+
"dynamsoft-javascript-barcode": "8.6.1"
|
|
11
11
|
},
|
|
12
12
|
"description": "Dynamic Web TWAIN is a TWAIN/ICA/SANE-based scanning SDK software specifically designed for web applications running on Windows/macOS/Linux. With just a few lines of code, you can develop robust applications to scan documents from TWAIN/ICA/SANE-compatible scanners, edit the scanned images and save them to a local/server file system or document repository.",
|
|
13
13
|
"devDependencies": {},
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
<script type="text/javascript">
|
|
20
20
|
Dynamsoft.DWT.ResourcesPath = "../dist";
|
|
21
|
-
Dynamsoft.DWT.ProductKey = '
|
|
21
|
+
Dynamsoft.DWT.ProductKey = 't0078lQAAADwjfAgjja9bJQCvNLF+I95M8NcRwxGzd6Q8Rcy81WN4OKf50aIDZsYiqnFigGCu3ijhiwna69wgsZCtTcBpYF1QeJx78AEA7B9g';
|
|
22
22
|
Dynamsoft.DWT.RegisterEvent('OnWebTwainReady', Dynamsoft_OnReady);
|
|
23
23
|
window.onload = function () {
|
|
24
24
|
if (Dynamsoft.Lib.env.bMobile) {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
<div id="dwtcontrolContainer"></div>
|
|
39
39
|
<script type="text/javascript">
|
|
40
40
|
Dynamsoft.DWT.ResourcesPath = "../dist";
|
|
41
|
-
|
|
41
|
+
Dynamsoft.DWT.ProductKey = 't0078lQAAADwjfAgjja9bJQCvNLF+I95M8NcRwxGzd6Q8Rcy81WN4OKf50aIDZsYiqnFigGCu3ijhiwna69wgsZCtTcBpYF1QeJx78AEA7B9g';
|
|
42
42
|
Dynamsoft.DWT.RegisterEvent('OnWebTwainReady', Dynamsoft_OnReady); // Register OnWebTwainReady event. This event fires as soon as Dynamic Web TWAIN is initialized and ready to be used
|
|
43
43
|
window.onload = function () {
|
|
44
44
|
if (Dynamsoft.Lib.env.bMobile) {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
|
|
23
23
|
<script type="text/javascript">
|
|
24
24
|
Dynamsoft.DWT.ResourcesPath = "../dist";
|
|
25
|
-
Dynamsoft.DWT.ProductKey = '
|
|
25
|
+
Dynamsoft.DWT.ProductKey = 't0078lQAAADwjfAgjja9bJQCvNLF+I95M8NcRwxGzd6Q8Rcy81WN4OKf50aIDZsYiqnFigGCu3ijhiwna69wgsZCtTcBpYF1QeJx78AEA7B9g';
|
|
26
26
|
window.onload = function () {
|
|
27
27
|
Dynamsoft.DWT.Containers = [{ContainerId:'dwtcontrolContainer', Width:700, Height:800}];
|
|
28
28
|
Dynamsoft.DWT.Load();
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
|
|
26
26
|
<script type="text/javascript">
|
|
27
27
|
Dynamsoft.DWT.ResourcesPath = "../dist";
|
|
28
|
-
Dynamsoft.DWT.ProductKey = '
|
|
28
|
+
Dynamsoft.DWT.ProductKey = 't0078lQAAADwjfAgjja9bJQCvNLF+I95M8NcRwxGzd6Q8Rcy81WN4OKf50aIDZsYiqnFigGCu3ijhiwna69wgsZCtTcBpYF1QeJx78AEA7B9g';
|
|
29
29
|
window.onload = function () {
|
|
30
30
|
Dynamsoft.DWT.Containers = [{ContainerId:'dwtcontrolContainer', Width:600, Height:800}];
|
|
31
31
|
Dynamsoft.DWT.Load();
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
|
|
41
41
|
<script type="text/javascript">
|
|
42
42
|
Dynamsoft.DWT.ResourcesPath = "../dist";
|
|
43
|
-
Dynamsoft.DWT.ProductKey = '
|
|
43
|
+
Dynamsoft.DWT.ProductKey = 't0078lQAAADwjfAgjja9bJQCvNLF+I95M8NcRwxGzd6Q8Rcy81WN4OKf50aIDZsYiqnFigGCu3ijhiwna69wgsZCtTcBpYF1QeJx78AEA7B9g';
|
|
44
44
|
window.onload = function () {
|
|
45
45
|
Dynamsoft.DWT.Containers = [{ContainerId:'dwtcontrolContainer', Width:700, Height:600}];
|
|
46
46
|
Dynamsoft.DWT.Load();
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
<div id="dwtcontrolContainer"></div>
|
|
16
16
|
<script type="text/javascript">
|
|
17
17
|
Dynamsoft.DWT.ResourcesPath = "../dist";
|
|
18
|
-
Dynamsoft.DWT.ProductKey = '
|
|
18
|
+
Dynamsoft.DWT.ProductKey = 't0078lQAAADwjfAgjja9bJQCvNLF+I95M8NcRwxGzd6Q8Rcy81WN4OKf50aIDZsYiqnFigGCu3ijhiwna69wgsZCtTcBpYF1QeJx78AEA7B9g';
|
|
19
19
|
Dynamsoft.DWT.RegisterEvent('OnWebTwainReady', Dynamsoft_OnReady);
|
|
20
20
|
window.onload = function () {
|
|
21
21
|
if (Dynamsoft.Lib.env.bMobile) {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
</div>
|
|
23
23
|
<script type="text/javascript">
|
|
24
24
|
Dynamsoft.DWT.ResourcesPath = "../dist";
|
|
25
|
-
Dynamsoft.DWT.ProductKey = '
|
|
25
|
+
Dynamsoft.DWT.ProductKey = 't0078lQAAADwjfAgjja9bJQCvNLF+I95M8NcRwxGzd6Q8Rcy81WN4OKf50aIDZsYiqnFigGCu3ijhiwna69wgsZCtTcBpYF1QeJx78AEA7B9g';
|
|
26
26
|
Dynamsoft.DWT.RegisterEvent('OnWebTwainReady', Dynamsoft_OnReady);
|
|
27
27
|
window.onload = function () {
|
|
28
28
|
if (Dynamsoft.Lib.env.bMobile) {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
<script type="text/javascript">
|
|
28
28
|
Dynamsoft.DWT.ResourcesPath = "../dist";
|
|
29
29
|
Dynamsoft.DWT.UseCameraAddonWasm = true;
|
|
30
|
-
Dynamsoft.DWT.ProductKey = '
|
|
30
|
+
Dynamsoft.DWT.ProductKey = 't0078lQAAADwjfAgjja9bJQCvNLF+I95M8NcRwxGzd6Q8Rcy81WN4OKf50aIDZsYiqnFigGCu3ijhiwna69wgsZCtTcBpYF1QeJx78AEA7B9g';
|
|
31
31
|
Dynamsoft.DWT.RegisterEvent('OnWebTwainReady', Dynamsoft_OnReady);
|
|
32
32
|
Dynamsoft.DWT.Containers = [{ ContainerId: 'dwtcontrolContainer', Width: 600, Height: 800 }];
|
|
33
33
|
var bWASMCamera = true, bWASM = false;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
<script type="text/javascript">
|
|
20
20
|
Dynamsoft.DWT.ResourcesPath = "../dist";
|
|
21
|
-
Dynamsoft.DWT.ProductKey = '
|
|
21
|
+
Dynamsoft.DWT.ProductKey = 't0078lQAAADwjfAgjja9bJQCvNLF+I95M8NcRwxGzd6Q8Rcy81WN4OKf50aIDZsYiqnFigGCu3ijhiwna69wgsZCtTcBpYF1QeJx78AEA7B9g';
|
|
22
22
|
window.onload = function () {
|
|
23
23
|
if (Dynamsoft && (!Dynamsoft.Lib.product.bChromeEdition)) {
|
|
24
24
|
var ObjString = [];
|
|
@@ -5,6 +5,9 @@
|
|
|
5
5
|
</head>
|
|
6
6
|
<body>
|
|
7
7
|
<h2>Please scan the barcode to visit the online demo</h2>
|
|
8
|
+
<div>Click this <a href="https://demo.dynamsoft.com/web-twain/mobile-online-camera-scanner/" target="_blank" >link</a> to visit the online demo.<br/>
|
|
9
|
+
<div>Click this <a href="https://download.dynamsoft.com/Samples/DWT/SourceCode-DWT-Mobile-Camera-Scanner.zip" target="_blank" >link</a> to download the sample code.<br/>
|
|
10
|
+
Or you can scan the following barcode to visit it in your mobile devices.</div>
|
|
8
11
|
<img style="height:300px; width:300px;" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQQAAAEECAIAAABBat1dAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAISElEQVR4nO3dy27kOBIFULsx///L1ZuLXihRlMMRpDTAObuClaIq7QsixNf3nz9/voCvr3+efgB4C2GAEAYIYYD43+Xf39/fZxq+FO6Xdj/L+sEHqza9foz13ToXNz9b+m8OPsntK5nBJ+n4fE49A4QwQAgDhDBAXAvoi8Hx6VJlWVWqetdPUi3gOgXf1uH/al37a1sr4GN/gV96BviPMEAIA4QwQNwU0Bedccp9DX1ev256tuCrjlhPqQ70rr+i5qDyz2/VtPUvUM8AIQwQwgAhDBC1AnqfrRN3B6crP9h0c0R5X6FffbDXLrvXM0AIA4QwQAgDxFsK6Oaw5bGa7NgK3du2ts6ULk16L935zfQMEMIAIQwQwgBRK6CPFUO3m4h1xlM7/4vqxOlO01t3N+vsfbZueuva661/gXoGCGGAEAYIYYC4KaCPDbg2q65OdVj6bLWy7zS9Nvtg+76x6sfXF2+lZ4AQBghhgBAGiGsB/dSE25M7OQ/Wjr+4YNF0x8lCs1Po3378wSnfegYIYYAQBghhgGjtwn1yh6zBVbklzbHw0k9Ld54tNEsP1tnzvHm3zmdvL9YzQAgDhDBACAPEtYDuHHZ08Z7do46diPx58+b88MXFzSncF52Dqjq3ql6/dfq3ngFCGCCEAUIYIIQBorYhQOfl0uyRZINvadYNVW1dSt8xePPZrf46bc1+Y3oGCGGAEAYIYY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