diff --git a/about/index.md b/about/index.md index 7acbc6eb..c35d3a87 100644 --- a/about/index.md +++ b/about/index.md @@ -70,6 +70,19 @@ To ensure your data is safe, Dynamic Web TWAIN offers advanced security features Learn more about [Dynamic Web TWAIN Security Features](https://www.dynamsoft.com/Products/Dynamic-Web-TWAIN-Security-Features.pdf) + +## Example Apps + +Check out our Angular, React and Vue sample project on GitHub: + + [Sample of dwt-angular-advanced](https://github.com/dynamsoft-dwt/dwt-angular-advanced) + [Sample of dwt-react-advanced](https://github.com/Dynamsoft/web-twain-react-advanced) + [Sample of dwt-vue-advanced](https://github.com/Dynamsoft/web-twain-vue-advanced) + +## Live Online Demo + +Click here to go to online demo. + ## Assumptions These docs are meant for developers who are already familiar with HTML, CSS, JavaScript, and some related ideas, tools, etc. diff --git a/faq/how-to-exclude-wia-sources-in-the-source-list.md b/faq/how-to-exclude-wia-sources-in-the-source-list.md index d72ca61e..cde5f922 100644 --- a/faq/how-to-exclude-wia-sources-in-the-source-list.md +++ b/faq/how-to-exclude-wia-sources-in-the-source-list.md @@ -15,23 +15,12 @@ permalink: /faq/how-to-exclude-wia-sources-in-the-source-list.html > Applicable to Windows only -There are two ways to achieve this: -* Set `IfUseTwainDSM` to `true` -``` javascript -DWObject.IfUseTwainDSM = true; -``` - -* Filter sources before listing them +* Set [IfUseTwainDSM]({{site.info}}api/WebTwain_Acquire.html#ifusetwaindsm) to `true` ``` javascript -var sources = DWObject.GetSourceNames(); -for (var i = 0; i < sources.length; i++) { - if (sources[i].toLowerCase().indexOf('epson') != -1) { - sources.splice(i, 1); - } -} +DWObject.IfUseTwainDSM = true; ``` If you are still having issues with a device, please feel free to [contact us](https://www.dynamsoft.com/company/contact/) via email, live chat, or phone call. \ No newline at end of file diff --git a/info/api/WebTwain_Buffer.md b/info/api/WebTwain_Buffer.md index e6175c34..6fa36575 100644 --- a/info/api/WebTwain_Buffer.md +++ b/info/api/WebTwain_Buffer.md @@ -23,7 +23,7 @@ The properties and methods on this page live in the namespace {WebTwainObject}. | [`GetImageXResolution()`](#getimagexresolution) | [`GetImageYResolution()`](#getimageyresolution) | [`GetSkewAngle()`](#getskewangle) | [`GetSkewAngleEx()`](#getskewangleex) | | [`ImageIDToIndex()`](#imageidtoindex) | [`IndexToImageID()`](#indextoimageid) | [`IsBlankImage()`](#isblankimage) | [`IsBlankImageExpress()`](#isblankimageexpress) | | [`SelectAllImages()`](#selectallimages) | [`MoveImage()`](#moveimage) | [`SwitchImage()`](#switchimage) | [`RemoveImage()`](#removeimage) | -| [`RemoveAllImages()`](#removeallimages) | [`RemoveAllSelectedImages()`](#removeallselectedimages) | [`SelectImages()`](#selectimages) | [`GetTagListByIndex()`](#gettaglistbyindex) | +| [`RemoveAllImages()`](#removeallimages) | [`RemoveAllSelectedImages()`](#removeallselectedimages) | [`SelectImages()`](#selectimages) | [`GetTagListByIndex()`](#gettaglistbyindex) | [`CreateDocument()`](#createdocument) | [`OpenDocument()`](#opendocument) | [`GetCurrentDocumentName()`](#getcurrentdocumentname) | [`RenameDocument()`](#renamedocument) | [`RemoveDocument()`](#removedocument) | [`GetDocumentInfoList()`](#getdocumentinfolist) | diff --git a/info/api/WebTwain_Viewer.md b/info/api/WebTwain_Viewer.md index 86ac489a..eaddef00 100644 --- a/info/api/WebTwain_Viewer.md +++ b/info/api/WebTwain_Viewer.md @@ -52,18 +52,8 @@ permalink: /info/api/WebTwain_Viewer.html /** * Create a Dynamsoft Viewer instance and bind it to the WebTwain instance. * @param element Specify an HTML element to create the viewer. - * @param documentTemplate Specify the document template. */ -bind(element: HTMLDivElement, documentTemplate: DocumentViewerTemplate) : void; - -interface DocumentViewerTemplate{ - getCustomElement():CustomElement; //Get CustomElement. Can display save & upload interface in CustomElement. - onAddDocumentFunc = function () {} - onExitFunc = function () {} - onSaveFunc = function () {} //Save button click event - onUploadFunc = function () {} //Upload button click event - onRemoveSelectedFunc = function () {} //Remove button click event -} +bind(element: HTMLDivElement | HTMLElement) : boolean; ``` **Example** @@ -73,18 +63,13 @@ var DWObject, template; Dynamsoft.DWT.CreateDWTObjectEx( { WebTwainId: "a", - UseLocalService: false, }, function (obj) { DWObject = obj; - template = DWObject.Viewer.createTemplate("documentScanner"); - DWObject.Viewer.bind(null, template); //full screen - DWObject.Viewer.show(); - - template.onExitFunc = function () { - DWObject.Viewer.show(); - console.error ("execute"); - //RemoveAllFile(); + template = DWObject.Viewer.getElementById("dwtcontrolContainer_temp3"); + DWObject.Viewer.width=500; + DWObject.Viewer.height=600; + DWObject.Viewer.show(); } }, function (errorCode, errorString) { console.log(errorString); @@ -2433,96 +2418,6 @@ When set to true, the index in the upper left corner of the viewer will be selec --- -## createTemplate - -**Syntax** - -
->- v17.3 ->- v17.2.5 -> -> -```typescript -/** - * Create document scanner template. - * @argument templateName Currently templateName only supports "documentScanner". - * @argument documentConfiguration Configuration for the document object. - */ -createTemplate("templateName", documentConfiguration?: DocumentConfiguration):DocumentViewerTemplate -interface DocumentViewerTemplate{ - getCustomElement():CustomElement; //Get CustomElement. Can display save & upload interface in CustomElement. - onAddDocumentFunc = function () {} - onExitFunc = function () {} - onSaveFunc = function () {} //Save button click event - onUploadFunc = function () {} //Upload button click event - onRemoveSelectedFunc = function () {} //Remove button click event -} -``` -```typescript -/** - * Create document scanner template. - * @argument templateName Currently templateName only supports "documentScanner". - */ -createTemplate("templateName"):DocumentViewerTemplate -interface DocumentViewerTemplate{ - getCustomElement():CustomElement; //Get CustomElement. Can display save & upload interface in CustomElement. - onAddDocumentFunc = function () {} - onExitFunc = function () {} - onSaveFunc = function () {} //Save button click event - onUploadFunc = function () {} //Upload button click event - onRemoveSelectedFunc = function () {} //Remove button click event -} -``` -**Availability** -| ActiveX | -H5(Windows) | -H5(macOS/TWAIN) | -H5(macOS/ICA) | -H5(Linux) | -
| not supported | -v17.3+ | -v17.3+ | -v17.3+ | -v17.3+ | -