Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions _data/full_tree.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ tree_list:
- name: Use Web TWAIN in Vue
path: /indepth/development/vue.html
- name: Simple Demo
path: /getstarted/Helloworld.html
path: https://www.dynamsoft.com/web-twain/resources/code-gallery/
- name: API Reference
path: /info/api/
childList:
Expand All @@ -76,8 +76,8 @@ tree_list:
path: /info/api/WebTwain_Util.html
- name: Addon_BarcodeReader
path: /info/api/Addon_BarcodeReader.html
- name: Addon_Camera
path: /info/api/Addon_Camera.html
# - name: Addon_Camera
# path: /info/api/Addon_Camera.html
- name: Addon_PDF
path: /info/api/Addon_PDF.html
- name: Addon_Webcam
Expand Down
23 changes: 9 additions & 14 deletions about/hardware.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@ permalink: /getstarted/hardware.html

Dynamic Web TWAIN's main feature is interacting with imaging devices like scanners and cameras. In this section, we'll look at the supported devices.

- [TWAIN Scanners](#twain-scanners)
- [ICA Scanners](#ica-scanners)
- [SANE Scanners](#sane-scanners)
- [DirectShow Cameras](#directshow-cameras)
- [MediaDevices Cameras](#mediadevices-cameras)
- [Imaging Hardware](#imaging-hardware)
- [TWAIN Scanners](#twain-scanners)
- [Facts about TWAIN](#facts-about-twain)
- [ICA Scanners](#ica-scanners)
- [Facts about ICA](#facts-about-ica)
- [SANE Scanners](#sane-scanners)
- [Facts about SANE](#facts-about-sane)
- [DirectShow Cameras](#directshow-cameras)

## TWAIN Scanners

Expand Down Expand Up @@ -72,12 +75,4 @@ See more: <a href="{{site.faq}}how-to-test-if-your-device-is-SANE-compliant.html

`DirectShow Cameras` refer to the cameras which can be accessed via the [Microsoft DirectShow architecture](https://docs.microsoft.com/en-us/windows/win32/directshow/introduction-to-directshow). These cameras are either built into desktops / laptops or connected via USB.

See more: <a href="{{site.faq}}how-to-test-if-your-camera-is-DirectShow-compliant.html" target="_blank">Is my Camera DirectShow Compliant?</a>

## MediaDevices Cameras

`MediaDevices Cameras` refers to the cameras accessible via the [MediaDevices interface](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices). These cameras are either built into desktops/laptops/mobile devices, including phones and tablets, or connected via USB.

> `DirectShow Cameras` and `MediaDevices Cameras` could refer to the same devices which can be accessed either way.

See more: <a href="{{site.faq}}how-to-test-if-your-camera-is-MediaDevices-compliant.html" target="_blank">Is my Camera MediaDevices Compliant?</a>
See more: <a href="{{site.faq}}how-to-test-if-your-camera-is-DirectShow-compliant.html" target="_blank">Is my Camera DirectShow Compliant?</a>
21 changes: 1 addition & 20 deletions getstarted/platform.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,10 @@ permalink: /getstarted/platform.html

## Supported systems and browsers

Dynamic Web TWAIN is designed to be cross-platform, thus, it works in all major browsers across all major operating systems, including Windows, macOS, Linux and mobile.
Dynamic Web TWAIN is designed to be cross-platform, thus, it works in all major browsers across all major operating systems, including Windows, macOS, Linux.

[See the list of supported systems and browsers >](https://www.dynamsoft.com/web-twain/features/)

## Additional notes

Besides the mainstream systems, here are some additional notes on WASM browsers, ActiveX browsers and more:

**WASM browsers**

WASM browsers refer to the browsers with the following advanced features.

- [Blob](https://developer.mozilla.org/en-US/docs/Web/API/Blob) - [More info](https://caniuse.com/#feat=blobbuilder)

- [URL/createObjectURL](https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL) - [More info](https://caniuse.com/#feat=bloburls)

- [Web Workers](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API) - [More info](https://caniuse.com/#feat=webworkers)

- [WebAssembly](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_objects/WebAssembly) -
[More info](https://caniuse.com/#feat=wasm)

- [MediaDevices/getUserMedia](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia) - [More info](https://caniuse.com/#feat=stream)

**ActiveX browsers**

ActiveX browsers refers to Internet Explorer 9 ~ 11. They are not included in the above lists. By default, IE 10 ~ 11 runs in HTML5 mode. Setting the global API `Dynamsoft.DWT.IfUseActiveXForIE10Plus` to true can turn ActiveX mode on in IE 10 ~ 11.
Expand Down
1 change: 0 additions & 1 deletion getstarted/server.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ The deployment of Dynamic Web TWAIN is easy. Simply copy the Resources folder to

If you need to use any of the following features, you must enable HTTPS on the server.

* Use the new [Camera module]({{site.indepth}}features/Input.html#use-mediadevices-cameras)
* Upload or Download via SSL
* Any other features that require a secure connection

Expand Down
2 changes: 1 addition & 1 deletion indepth/features/barcode.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ With the increasing use of barcode reading in document management systems, the B

## Environment

* [Desktop]({{site.getstarted}}platform.html#browsers-on-desktop-devices) and [Mobile]({{site.getstarted}}platform.html#browsers-on-mobile-devices).
* Windows

## How to use

Expand Down
4 changes: 0 additions & 4 deletions indepth/features/initialize.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,6 @@ Dynamsoft.DWT.CreateDWTObject(
);
```

The method can also do something that [Load](#dynamsoftdwtload) can't. The following code creates a `WebTwain` instance that connects to the Dynamsoft Service running on another machine. Check out [how to enable remote scan]({{site.faq}}how-to-enable-remote-scan.html).

### [`Dynamsoft.DWT.CreateDWTObjectEx()`]({{site.info}}api/Dynamsoft_WebTwainEnv.html#createdwtobjectex)

This method manually creates a `WebTwain` instance without a default built-in viewer.
Expand Down Expand Up @@ -174,8 +172,6 @@ Dynamsoft.DWT.CreateDWTObjectEx({
);
```

Similar to [`CreateDWTObject`](#dynamsoftwebtwainenvcreatedwtobject), `CreateDWTObjectEx` can also connect to the Dynamsoft Service running on another machine. Check out [how to enable remote scan]({{site.faq}}how-to-enable-remote-scan.html).

## Customizing the instances

The instances are defined in `dynamsoft.webtwain.config.js`:
Expand Down
49 changes: 0 additions & 49 deletions indepth/features/input.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,57 +22,8 @@ A local scanner refers to a scanner that is plugged in the same desktop via USB

> As far as `Dynamic Web TWAIN` is concerned, a network scanner is just like a local scanner because its driver has taken care of the network connection behind the scene.

### Scan From a Remote Scanner

Please refer to [this article](#) for more information on remote scanning. (Link TBC)

## Capture from cameras

### Use [MediaDevices Cameras]({{site.getstarted}}hardware.html#mediadevices-cameras)

Dynamic Web TWAIN also comes with a Camera add-on for you to capture images or documents using MediaDevices cameras, auto crop and adjust perspective.

To include the Camera add-on, simply add a reference to the corresponding camera JS file which is included in the [resources folder]({{site.faq}}what-are-the-resources-files.html).

``` html
<script src="Resources/addon/dynamsoft.webtwain.addon.camera.js"></script>
```

[Try an online demo](https://demo.dynamsoft.com/web-twain/mobile-online-camera-scanner/) | [Get sample code](https://download.dynamsoft.com/Samples/DWT/SourceCode-DWT-Mobile-Camera-Scanner.zip)

Notes:

Make sure you deploy the sample to a web server that
- runs HTTPS
- serves the `*.wasm` file with `Content-Type: application/wasm`

The following code snippet shows how to use the camera add-on:

``` javascript
function CaptureImage() {
if (DWObject) {
var showVideoConfigs = {
scannerViewer: {
autoDetect: {
enableAutoDetect: true
}
},
filterViewer: {
exitDocumentScanAfterSave: true
}
};

DWObject.Addon.Camera.scanDocument(showVideoConfigs).then(
function () {
console.log("OK");
},
function (error) {
console.log(error.message);
});
}
}
```

### Use [DirectShow Cameras]({{site.getstarted}}hardware.html#directshow-cameras)

To include the Webcam add-on, simply add a reference to the corresponding webcam JS file which is included in the [resources folder]({{site.faq}}what-are-the-resources-files.html).
Expand Down
20 changes: 0 additions & 20 deletions indepth/features/output.md
Original file line number Diff line number Diff line change
Expand Up @@ -345,26 +345,6 @@ DWObject.SaveAsJPEG("Sample.jpg", 0,
);
```

### Save files from MediaDevices camera capture

When using the Camera add-on, DWT runs its entire operations within desktop/mobile browsers. As a result, files are always saved in the system's Downloads folder by default, regardless of the absolute path specified. And the API [`IfShowFileDialog`]({{site.info}}api/WebTwain_IO.html#ifshowfiledialog) has no effect in this case.

``` javascript
// The following line will be ignored and
// no file dialog will be shown in WASM mode
DWObject.IfShowFileDialog = true;
// The absolute path specified will be ignored and
// the file is saved to the Downloads folder
DWObject.SaveAllAsPDF("D:\\Sample.pdf",
function() {
console.log('Successful!');
},
function(errCode, errString) {
console.log(errString);
}
);
```

## Convert

In some cases, you want to process the data yourself and want to extract it from the `Dynamic Web TWAIN` buffer. `Dynamic Web TWAIN` offers two approaches.
Expand Down
2 changes: 1 addition & 1 deletion indepth/features/pdf.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ PDFs are widely used in many and various industries, and presently are the only

## Environment

* Supported on [Desktop]({{site.getstarted}}platform.html#browsers-on-desktop-devices) and [Mobile]({{site.getstarted}}platform.html#browsers-on-mobile-devices).
* Supported on [Desktop]({{site.getstarted}}platform.html#browsers-on-desktop-devices).

## Including the PDF addon

Expand Down
40 changes: 0 additions & 40 deletions info/api/Addon_BarcodeReader.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,19 +132,12 @@ interface Result {
<div class="availability">
<table>

<tr>
<td colspan="5" align="center">Desktop Service Edition</td>
<td>WebAssembly Edition</td>
</tr>

<tr>
<td align="center">ActiveX</td>
<td align="center">H5(Windows)</td>
<td align="center">H5(macOS/TWAIN)</td>
<td align="center">H5(macOS/ICA)</td>
<td align="center">H5(Linux)</td>
<td align="center">WASM</td>
<td align="center">Android Service</td>
</tr>

<tr>
Expand All @@ -153,8 +146,6 @@ interface Result {
<td align="center">not supported </td>
<td align="center">not supported </td>
<td align="center">not supported </td>
<td align="center">v16.0+ </td>
<td align="center">v18.0+</td>
</tr>

</table>
Expand Down Expand Up @@ -224,19 +215,12 @@ interface Region {
<div class="availability">
<table>

<tr>
<td colspan="5" align="center">Desktop Service Edition</td>
<td>WebAssembly Edition</td>
</tr>

<tr>
<td align="center">ActiveX</td>
<td align="center">H5(Windows)</td>
<td align="center">H5(macOS/TWAIN)</td>
<td align="center">H5(macOS/ICA)</td>
<td align="center">H5(Linux)</td>
<td align="center">WASM</td>
<td align="center">Android Service</td>
</tr>

<tr>
Expand All @@ -245,8 +229,6 @@ interface Region {
<td align="center">not supported </td>
<td align="center">not supported </td>
<td align="center">not supported </td>
<td align="center">v16.0+ </td>
<td align="center">v18.0+</td>
</tr>

</table>
Expand Down Expand Up @@ -290,19 +272,12 @@ DWObject.Addon.BarcodeReader.getRuntimeSettings("balance")
<div class="availability">
<table>

<tr>
<td colspan="5" align="center">Desktop Service Edition</td>
<td>WebAssembly Edition</td>
</tr>

<tr>
<td align="center">ActiveX</td>
<td align="center">H5(Windows)</td>
<td align="center">H5(macOS/TWAIN)</td>
<td align="center">H5(macOS/ICA)</td>
<td align="center">H5(Linux)</td>
<td align="center">WASM</td>
<td align="center">Android Service</td>
</tr>

<tr>
Expand All @@ -311,8 +286,6 @@ DWObject.Addon.BarcodeReader.getRuntimeSettings("balance")
<td align="center">not supported </td>
<td align="center">not supported </td>
<td align="center">not supported </td>
<td align="center">v16.0+ </td>
<td align="center">v18.0+</td>
</tr>

</table>
Expand All @@ -335,19 +308,12 @@ resetRuntimeSettings(): Promise < RuntimeSettings > ;
<div class="availability">
<table>

<tr>
<td colspan="5" align="center">Desktop Service Edition</td>
<td>WebAssembly Edition</td>
</tr>

<tr>
<td align="center">ActiveX</td>
<td align="center">H5(Windows)</td>
<td align="center">H5(macOS/TWAIN)</td>
<td align="center">H5(macOS/ICA)</td>
<td align="center">H5(Linux)</td>
<td align="center">WASM</td>
<td align="center">Android Service</td>
</tr>

<tr>
Expand All @@ -356,8 +322,6 @@ resetRuntimeSettings(): Promise < RuntimeSettings > ;
<td align="center">not supported </td>
<td align="center">not supported </td>
<td align="center">not supported </td>
<td align="center">v16.0+ </td>
<td align="center">v18.0+</td>
</tr>

</table>
Expand Down Expand Up @@ -389,8 +353,6 @@ initRuntimeSettingsWithString(
<td align="center">H5(macOS/TWAIN)</td>
<td align="center">H5(macOS/ICA)</td>
<td align="center">H5(Linux)</td>
<td align="center">WASM</td>
<td align="center">Android Service</td>
</tr>

<tr>
Expand All @@ -399,8 +361,6 @@ initRuntimeSettingsWithString(
<td align="center">not supported </td>
<td align="center">not supported </td>
<td align="center">not supported </td>
<td align="center">v16.0+ </td>
<td align="center">v18.0+</td>
</tr>

</table>
Expand Down
Loading