Skip to content

Commit 391d8f7

Browse files
update to web-twain 18.4
1 parent bb7f4be commit 391d8f7

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"@angular/platform-browser": "~16.0.0",
2020
"@angular/platform-browser-dynamic": "~16.0.0",
2121
"@angular/router": "~16.0.0",
22-
"dwt": "18.3.0",
22+
"dwt": "18.4.0",
2323
"rxjs": "~7.8.1",
2424
"tslib": "^2.5.2",
2525
"zone.js": "~0.13.0"

src/app/dwt/dwt.component.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export class DwtComponent implements OnInit {
1717
Dynamsoft.DWT.Containers = [{ WebTwainId: 'dwtObject', ContainerId: this.containerId, Width: '300px', Height: '400px' }];
1818
Dynamsoft.DWT.RegisterEvent('OnWebTwainReady', () => { this.Dynamsoft_OnReady(); });
1919
Dynamsoft.DWT.ResourcesPath = '/assets/dwt-resources';
20-
Dynamsoft.DWT.ProductKey = 't0106KwEAAHS5i/IQMtobY1KiE0ohnvp0rYQ6Odqe3YSTuwoeLvNCke4y7UccAqchMe1OUgSW/vPP42qfMZqjyorwWR/DnRUBbMP5AyjcPbyr+HVod/EEDJNDB2wFSOh/Xnlxg6lISUkO19Q75w==';
20+
Dynamsoft.DWT.ProductKey = 't0107KwEAAFqHOzuiG0pkbu8UHkUGeOSoaezN9f0x+c7plsWGSCA28VNFZFgj71h2GachA/emFbGgAT3emZ8dQmmIu1Wg2A5UAHk4fwDOvVYEC34dWi6egGFy6ICtAAn9z6svMviWPNJ4ABlIPoA=';
2121
Dynamsoft.DWT.Load();
2222
}
2323

@@ -58,7 +58,9 @@ export class DwtComponent implements OnInit {
5858
/**
5959
* Note, this following line of code uses the PDF Rasterizer which is an extra add-on that is licensed seperately
6060
*/
61-
this.DWObject.Addon.PDF.SetConvertMode(Dynamsoft.DWT.EnumDWT_ConvertMode.CM_RENDERALL);
61+
this.DWObject.Addon.PDF.SetReaderOptions({
62+
convertMode:Dynamsoft.DWT.EnumDWT_ConvertMode.CM_RENDERALL
63+
});
6264
this.DWObject.LoadImageEx("", Dynamsoft.DWT.EnumDWT_ImageType.IT_ALL,
6365
function () {
6466
//success

0 commit comments

Comments
 (0)