diff --git a/articles/extended-usage/advanced-initialization.md b/articles/extended-usage/advanced-initialization.md index 3a146fb8..0c8c52ff 100644 --- a/articles/extended-usage/advanced-initialization.md +++ b/articles/extended-usage/advanced-initialization.md @@ -6,7 +6,6 @@ keywords: Dynamic Web TWAIN, extended guide, advanced, advanced initialization, breadcrumbText: Advanced DWT Initialization description: Advanced DWT Initialization permalink: /extended-usage/advanced-initialization.html -redirect_from: /indepth/features/initialize.html --- # Advanced DWT Initialization @@ -219,7 +218,7 @@ This method creates a `WebTwain` instance, and makes it available through the su `Dynamsoft.DWT.CreateDWTObject()` can also set network configurations with an overloaded method like so: -```JS +```javascript CreateDWTObject( ContainerId: string, host: string, diff --git a/articles/extended-usage/barcode-processing.md b/articles/extended-usage/barcode-processing.md index 9cae7806..8a585b3c 100644 --- a/articles/extended-usage/barcode-processing.md +++ b/articles/extended-usage/barcode-processing.md @@ -6,7 +6,6 @@ keywords: Dynamic Web TWAIN, Documentation, Read Barcode breadcrumbText: Read Barcode description: Dynamic Web TWAIN SDK Documentation Read Barcode Page permalink: /extended-usage/barcode-processing.html -redirect_from: /indepth/features/barcode.html --- # Barcode Reader diff --git a/articles/extended-usage/buffer-caching.md b/articles/extended-usage/buffer-caching.md index 7ab7172e..e7988713 100644 --- a/articles/extended-usage/buffer-caching.md +++ b/articles/extended-usage/buffer-caching.md @@ -6,7 +6,6 @@ keywords: Dynamic Web TWAIN, Documentation, Deployment, Dynamsoft Service, cachi breadcrumbText: Dynamsoft Service description: Dynamic Web TWAIN SDK Documentation Dynamsoft Service Page permalink: /extended-usage/buffer-caching.html -redirect_from: /indepth/features/buffer.html --- # Buffer Caching diff --git a/articles/extended-usage/dynamsoft-service-configuration.md b/articles/extended-usage/dynamsoft-service-configuration.md index 7b4a5c2f..de9a3f78 100644 --- a/articles/extended-usage/dynamsoft-service-configuration.md +++ b/articles/extended-usage/dynamsoft-service-configuration.md @@ -7,7 +7,6 @@ keywords: Dynamic Web TWAIN, Documentation, Deployment, Dynamsoft Service breadcrumbText: Dynamsoft Service description: Dynamic Web TWAIN SDK Documentation Dynamsoft Service Page permalink: /extended-usage/dynamsoft-service-configuration.html -redirect_from: /indepth/deployment/service.html --- # Configuring the Dynamsoft Service diff --git a/articles/extended-usage/index.md b/articles/extended-usage/index.md index b7d497b6..c86cd546 100644 --- a/articles/extended-usage/index.md +++ b/articles/extended-usage/index.md @@ -5,9 +5,8 @@ needAutoGenerateSidebar: true title: Dynamic Web TWAIN SDK Extended Usage Guide keywords: Dynamic Web TWAIN, extended guide, advanced, advanced guide breadcrumbText: Dynamic Web TWAIN SDK Extended Usage Guide -description: Advanced Initialization +description: Extended Usage permalink: /extended-usage/index.html -redirect_from: /indepth/features/ --- # Extended Usage Guide diff --git a/articles/extended-usage/pdf-compression.md b/articles/extended-usage/pdf-compression.md index 9db63a9f..24ad6e79 100644 --- a/articles/extended-usage/pdf-compression.md +++ b/articles/extended-usage/pdf-compression.md @@ -6,7 +6,6 @@ keywords: Dynamic Web TWAIN, Documentation, PDF Compressor breadcrumbText: PDF Compressor (Beta) description: Dynamic Web TWAIN SDK Documentation PDF Compressor permalink: /extended-usage/pdf-compression.html -redirect_from: /indepth/features/pdfc.html --- # PDF Compressor (Beta) diff --git a/articles/extended-usage/pdf-processing.md b/articles/extended-usage/pdf-processing.md index f69463d3..170738ea 100644 --- a/articles/extended-usage/pdf-processing.md +++ b/articles/extended-usage/pdf-processing.md @@ -6,7 +6,6 @@ keywords: Dynamic Web TWAIN, Documentation, Handle PDF breadcrumbText: Handle PDF description: Dynamic Web TWAIN SDK Documentation Handle PDF Page permalink: /extended-usage/pdf-processing.html -redirect_from: /indepth/features/pdf.html --- # Processing PDFs diff --git a/articles/extended-usage/system-message-configuration.md b/articles/extended-usage/system-message-configuration.md index 810e61fe..9658fd96 100644 --- a/articles/extended-usage/system-message-configuration.md +++ b/articles/extended-usage/system-message-configuration.md @@ -7,7 +7,6 @@ keywords: Dynamic Web TWAIN, UI Customization, display language, language, messa breadcrumbText: Configuring System Messages description: Configuring System Messages permalink: /extended-usage/system-message-configuration.html -redirect_from: /indepth/features/ui.html --- # Configuring System Messages diff --git a/articles/extended-usage/ui-customization.md b/articles/extended-usage/ui-customization.md index 41776243..fe43411b 100644 --- a/articles/extended-usage/ui-customization.md +++ b/articles/extended-usage/ui-customization.md @@ -6,7 +6,6 @@ keywords: Dynamic Web TWAIN, Documentation, UI breadcrumbText: UI description: Dynamic Web TWAIN SDK Documentation UI Page permalink: /extended-usage/ui-customization.html -redirect_from: /indepth/features/ui.html --- # UI Elements diff --git a/articles/general-usage/file-import.md b/articles/general-usage/file-import.md index fb171987..b16b0f6c 100644 --- a/articles/general-usage/file-import.md +++ b/articles/general-usage/file-import.md @@ -92,7 +92,7 @@ We first enable file selection dialogue with the [`IfShowFileDialog`]({{site.api [`LoadImage()`]({{site.api}}WebTwain_IO.html#loadimage), works similarly to `LoadImageEx()`, but it does not specify an image file format: -```JS +```javascript DWTObject.LoadImage( "", // File path empty while file selection dialog is enabled function () { console.log("Successfully loaded file"); }, diff --git a/articles/general-usage/image-export/index.md b/articles/general-usage/image-export/index.md index 07a08fe1..c2b85413 100644 --- a/articles/general-usage/image-export/index.md +++ b/articles/general-usage/image-export/index.md @@ -7,8 +7,6 @@ keywords: Dynamic Web TWAIN, Documentation, upload, output, web, server, web ser breadcrumbText: Exporting Images description: Dynamic Web TWAIN SDK Image Export Documentation permalink: /general-usage/image-export/index.html -redirect_from: - - /indepth/features/output.html --- # Exporting Images diff --git a/articles/general-usage/image-export/local-export.md b/articles/general-usage/image-export/local-export.md index f8531272..cfe146da 100644 --- a/articles/general-usage/image-export/local-export.md +++ b/articles/general-usage/image-export/local-export.md @@ -6,7 +6,6 @@ keywords: Dynamic Web TWAIN, Documentation, save, output, export, web, download, breadcrumbText: Exporting Locally description: Dynamic Web TWAIN SDK Documentation Local Export permalink: /general-usage/image-export/local-export.html -redirect_from: /indepth/features/output.html#save --- # Exporting Locally diff --git a/articles/general-usage/image-export/server-upload.md b/articles/general-usage/image-export/server-upload.md index d6954718..95dcfbb1 100644 --- a/articles/general-usage/image-export/server-upload.md +++ b/articles/general-usage/image-export/server-upload.md @@ -6,7 +6,6 @@ keywords: Dynamic Web TWAIN, Documentation, upload, output, web, server, web ser breadcrumbText: Uploading to Web Server description: Dynamic Web TWAIN SDK Documentation Output Page permalink: /general-usage/image-export/server-upload.html -redirect_from: /indepth/features/output.html --- # Uploading Images to the Web Server diff --git a/articles/general-usage/image-processing/buffer-management.md b/articles/general-usage/image-processing/buffer-management.md index a5b0fe23..d2ab0968 100644 --- a/articles/general-usage/image-processing/buffer-management.md +++ b/articles/general-usage/image-processing/buffer-management.md @@ -6,8 +6,6 @@ keywords: Dynamic Web TWAIN, Documentation, development, guide, development guid breadcrumbText: Managing the Image Buffer description: Dynamic Web TWAIN SDK General Usage Guide - Managing the Image Buffer permalink: /general-usage/image-processing/buffer-management.html -redirect_from: - - /indepth/features/buffer.html --- # Managing the Image Buffer @@ -153,19 +151,19 @@ DWT can tag images for custom grouping, sorting, and other data management tasks For example, we may tag individual images with the "title" tag to identify title pages with [TagImages()]({{site.api}}WebTwain_Buffer.html#tagimages), like so: -```JS +```javascript DWTObject.TagImages([0, 1], "title"); ``` This applies the tag to the first and second images in the buffer (zero-indexed). If image indices are not known ahead of time, it's also useful to apply the tag to the currently displayed image in the viewer, via the [`CurrentImageIndexInBuffer`]({{site.api}}WebTwain_Buffer.html#currentimageindexinbuffer) property. This allows the user to tag the image upon inspection. -```JS +```javascript DWTObject.TagImages([DWTObject.CurrentImageInBuffer], "title"); ``` Rather than applying tags to existing images, it is possible to tag images as they enter the buffer via [SetDefaultTag()]({{site.api}}WebTwain_Buffer.html#setdefaulttag). By changing the default tag in reaction to application state, the web application can create rich image tagging logic: -```JS +```javascript DWTObject.SetDefaultTag("title"); ``` @@ -175,13 +173,13 @@ Every image entering the buffer after this will automatically receive this tag. Tags are only useful if they can be interacted with. Once images have been tagged, we can filter them by their tags. For example, a user may need to display only the title pages for preview purposes. Once title pages have been tagged (either as they were scanned or after the fact), we can use [FilterImagesByTag()]({{site.api}}WebTwain_Buffer.html#filterimagesbytag) to selectively display just the title pages: -```JS +```javascript DWTObject.FilterImagesByTag("title"); ``` Once the user finishes with the preview, DWT can revert to displaying all images by clearing the filter with [ClearFilter()]({{site.api}}WebTwain_Buffer.html#clearfilter): -```JS +```javascript DWTObject.ClearFilter(); ``` @@ -254,13 +252,13 @@ APIs used: Documents are another way to organize images within the image buffer. We may create multiple documents to group images, but unlike tags, images can each only belong to one document. Documents also preserve image order. First, we create a document with [CreateDocument()]({{site.api}}WebTwain_Buffer.html#createdocument): -```JS +```javascript DWTObject.CreateDocument("documentName"); ``` To add images into the document, we first open the document with [OpenDocument()]({{site.api}}WebTwain_Buffer.html#opendocument), and specifying the document by name: -```JS +```javascript DWTObject.OpenDocument("documentName"); ``` @@ -268,7 +266,7 @@ Subsequently, all images entering the buffer will belong to this document. Only We may also move images after they have entered documents, for example, to copy images from one document to another with [CopyToDocumentAsync()]({{site.api}}WebTwain_Buffer.html#coppytodocumentasync): -```JS +```javascript DWTObject.CopyToDocumentAsync("sourceDocumentName", "destinationDocumentName", sourceIndices, targetIndex) ``` @@ -311,7 +309,7 @@ The image buffer provides event callbacks which can be used to customize buffer - [`OnBufferChanged`]({{site.api}}WebTwain_Buffer.html#onbufferchanged) triggers whenever the state of the buffer changes. The details on how the buffer changes are provided in [`BufferChangeInfo`]({{site.api}}Interfaces.html#bufferchangeinfo): -```JS +```javascript DWTObject.RegisterEvent('OnBufferChanged', function (bufferChangeInfo: BufferChangeInfo) { } @@ -327,7 +325,7 @@ DWTObject.RegisterEvent('OnBufferChanged', * [`OnTopImageInTheViewChanged`]({{site.api}}WebTwain_Buffer.html#ontopimageintheviewchanged) triggers when the first image visible in the `Viewer` changes. (The viewer may be configured to show more than one image at a time, see the [`Viewer` guide]({{site.general-usage}}viewer-configuration.html) for details). -```JS +```javascript DWTObject.RegisterEvent( 'OnBitmapChanged', function( diff --git a/articles/general-usage/image-processing/image-editing.md b/articles/general-usage/image-processing/image-editing.md index 6e385914..ce81f9d6 100644 --- a/articles/general-usage/image-processing/image-editing.md +++ b/articles/general-usage/image-processing/image-editing.md @@ -6,8 +6,6 @@ keywords: Dynamic Web TWAIN, Documentation, development, guide, development guid breadcrumbText: Editing Images description: Dynamic Web TWAIN SDK General Usage Guide - Image Editing permalink: /general-usage/image-processing/image-editing.html -redirect_from: /indepth/features/edit.html - --- # Editing Images diff --git a/articles/general-usage/image-processing/index.md b/articles/general-usage/image-processing/index.md index 4d0f526e..4ff59c68 100644 --- a/articles/general-usage/image-processing/index.md +++ b/articles/general-usage/image-processing/index.md @@ -7,8 +7,6 @@ keywords: Dynamic Web TWAIN, Documentation, development, guide, development guid breadcrumbText: Processing Images description: Dynamic Web TWAIN SDK General Usage Guide - Processing Images permalink: /general-usage/image-processing/index.html -redirect_from: - - /indepth/features/edit.html --- # Processing Images diff --git a/articles/general-usage/index.md b/articles/general-usage/index.md index f80b3dfd..2e190d65 100644 --- a/articles/general-usage/index.md +++ b/articles/general-usage/index.md @@ -7,7 +7,6 @@ keywords: Dynamic Web TWAIN, Documentation, development, guide, development guid breadcrumbText: General usage guide description: Dynamic Web TWAIN SDK General Usage Guide permalink: /general-usage/index.html -redirect_from: /getstarted/ --- # General Usage Guide diff --git a/articles/general-usage/initialization.md b/articles/general-usage/initialization.md index 58b59839..8e0ada11 100644 --- a/articles/general-usage/initialization.md +++ b/articles/general-usage/initialization.md @@ -6,8 +6,6 @@ keywords: Dynamic Web TWAIN, Documentation, development, guide, development guid breadcrumbText: DWT Initialization description: Dynamic Web TWAIN SDK General Usage Guide - Initializing DWT permalink: /general-usage/initialization.html -redirect_from: - - /indepth/features/initialize.html --- # Initializing DWT diff --git a/articles/general-usage/license.md b/articles/general-usage/license.md index 83dd8892..7e38da27 100644 --- a/articles/general-usage/license.md +++ b/articles/general-usage/license.md @@ -7,8 +7,6 @@ keywords: Dynamic Web TWAIN, Documentation, License breadcrumbText: License description: Dynamic Web TWAIN SDK Documentation License Page permalink: /general-usage/license.html -redirect_from: - - /about/license.html --- # Using License Keys diff --git a/articles/general-usage/resource-loading.md b/articles/general-usage/resource-loading.md index 0d9d9c1b..f946aada 100644 --- a/articles/general-usage/resource-loading.md +++ b/articles/general-usage/resource-loading.md @@ -6,8 +6,6 @@ keywords: Dynamic Web TWAIN, Documentation, development, guide, development guid breadcrumbText: Loading Library Resources description: Dynamic Web TWAIN SDK General Usage Guide - Loading Library Resources permalink: /general-usage/resource-loading.html -redirect_from: /indepth/features/initialize.html - --- # Loading Library Resources diff --git a/articles/general-usage/scanner-image-acquisition.md b/articles/general-usage/scanner-image-acquisition.md index 469702cd..024fccc3 100644 --- a/articles/general-usage/scanner-image-acquisition.md +++ b/articles/general-usage/scanner-image-acquisition.md @@ -6,7 +6,6 @@ keywords: Dynamic Web TWAIN, Documentation, development, guide, development guid breadcrumbText: Acquiring Images from Scanners description: Dynamic Web TWAIN SDK General Usage Guide - Acquiring Images from Scanners permalink: /general-usage/scanner-image-acquisition.html -redirect_from: /indepth/features/input.html --- # Acquiring Images from Scanners @@ -86,7 +85,7 @@ Finally, `AcquireImageAsync()` closes the data source after completing the scan, `SelectSourceAsync()` can take an [`EnumDWT_DeviceType`]({{site.api}}Dynamsoft_Enum.html#dynamsoftdwtenumdwt_devicetype) argument to specify data sources using particular scanning protocols, and show only those data sources in the source selection UI. This may be useful in an internal use scenario where there is knowledge about the scanner hardware being used with DWT. For example, to show only eSCL data sources, we use the `Dynamsoft.DWT.EnumDWT_DeviceType.ESCLSCANNER` enum like so: -```JS +```javascript function AcquireImage() { if (DWTObject) { DWTObject.SelectSourceAsync(Dynamsoft.DWT.EnumDWT_DeviceType.ESCLSCANNER) @@ -112,7 +111,7 @@ Many use cases require a pre-specified set of scanning options (such as, but not Modifying the previous `AcquireImage()` function results in this: -```JS +```javascript function AcquireImage() { if (DWTObject) { DWTObject.SelectSourceAsync() diff --git a/articles/general-usage/server-deployment.md b/articles/general-usage/server-deployment.md index 960f0bb9..e749228a 100644 --- a/articles/general-usage/server-deployment.md +++ b/articles/general-usage/server-deployment.md @@ -6,8 +6,6 @@ keywords: Dynamic Web TWAIN, Documentation, Deployment, Server breadcrumbText: Server Deployment description: Dynamic Web TWAIN SDK Documentation Server Deployment Page permalink: /general-usage/server-deployment.html -redirect_from: - - /indepth/deployment/server.html --- # Deploy your application on the server diff --git a/articles/general-usage/server-side-scripting.md b/articles/general-usage/server-side-scripting.md index 5d46250f..dcf1aa6e 100644 --- a/articles/general-usage/server-side-scripting.md +++ b/articles/general-usage/server-side-scripting.md @@ -6,8 +6,6 @@ keywords: Dynamic Web TWAIN, Documentation, Development, Server Scripts breadcrumbText: Server Scripts description: Dynamic Web TWAIN SDK Documentation Server Scripts Page permalink: /general-usage/server-side-scripting.html -redirect_from: - - /indepth/development/Server-script.html --- # Server-side Scripting diff --git a/articles/general-usage/viewer-configuration.md b/articles/general-usage/viewer-configuration.md index 83a7a0bb..8dd36f60 100644 --- a/articles/general-usage/viewer-configuration.md +++ b/articles/general-usage/viewer-configuration.md @@ -6,8 +6,6 @@ keywords: Dynamic Web TWAIN, Documentation, development, guide, development guid breadcrumbText: DWT Viewer Configuration description: Dynamic Web TWAIN SDK General Usage Guide - Customizing the Viewer permalink: /general-usage/viewer-configuration.html -redirect_from: - - /indepth/features/viewer.html --- # Configuring the Viewer @@ -26,7 +24,7 @@ The default `WebTwain` instance automatically creates its own `Viewer` instance ##### Relevant Snippet from `dynamsoft.webtwain.config.js` -```JS +```javascript Dynamsoft.DWT.Containers = [{ ContainerId: 'customDivID', // New default div id Width: '800px', // New initial Viewer pixel width @@ -94,7 +92,7 @@ To further customize a `Viewer`, we create a `WebTwain` instance that does not h ##### Relevant Snippet from `dynamsoft.webtwain.config.js` -```JS +```javascript Dynamsoft.DWT.Containers = [] Dynamsoft.DWT.AutoLoad = false; ``` diff --git a/articles/hello-world/editing.md b/articles/hello-world/editing.md index fbcdb7aa..834fdb39 100644 --- a/articles/hello-world/editing.md +++ b/articles/hello-world/editing.md @@ -6,8 +6,6 @@ keywords: Dynamic Web TWAIN, Documentation, Hello World, editing, helloworld breadcrumbText: Uploading documents description: Dynamic Web TWAIN SDK HelloWorld - Editing Images permalink: /hello-world/editing.html -redirect_from: - - /getstarted/editing.html --- # Editing Images @@ -35,7 +33,7 @@ Add this line in the `HelloWorld.html` body to create a color mode conversion bu Then, define `binarizeImage()` in the `script` element: -```js +```javascript function binarizeImage() { DWTObject.ConvertToBW(DWTObject.CurrentImageIndexInBuffer); } @@ -57,7 +55,7 @@ Add two buttons for 90 degree clockwise and anti-clockwise image rotation: Define the rotation functions in the `script` element: -```js +```javascript function rotateCW() { DWTObject.RotateRight(DWTObject.CurrentImageIndexInBuffer); } diff --git a/articles/hello-world/index.md b/articles/hello-world/index.md index f34d2e0f..85013226 100644 --- a/articles/hello-world/index.md +++ b/articles/hello-world/index.md @@ -6,8 +6,6 @@ keywords: Dynamic Web TWAIN, Documentation, Hello World, upload, helloworld breadcrumbText: Scan settings description: Dynamic Web TWAIN SDK HelloWorld permalink: /hello-world/index.html -redirect_from: - - /getstarted/helloworld.html --- # Hello World diff --git a/articles/hello-world/scan-settings.md b/articles/hello-world/scan-settings.md index b4769750..805ebebc 100644 --- a/articles/hello-world/scan-settings.md +++ b/articles/hello-world/scan-settings.md @@ -6,8 +6,6 @@ keywords: Dynamic Web TWAIN, Documentation, Hello World, upload, helloworld breadcrumbText: Scan settings description: Dynamic Web TWAIN SDK HelloWorld - Specifying Scan Settings permalink: /hello-world/scan-settings.html -redirect_from: - - /getstarted/scansettings.html --- # Specifying Scan Settings @@ -29,7 +27,7 @@ The `AcquireImagesAsync()` API accepts scan setting arguments in a JSON format ( Add all three properties in the JSON argument passed to `AcquireImageAsync()`: -```js +```javascript function AcquireImage() { if (DWTObject) { DWTObject.SelectSourceAsync() diff --git a/articles/hello-world/scanning.md b/articles/hello-world/scanning.md index b96af72b..7f377986 100644 --- a/articles/hello-world/scanning.md +++ b/articles/hello-world/scanning.md @@ -6,8 +6,6 @@ keywords: Dynamic Web TWAIN, Documentation, Hello World, scanning, helloworld breadcrumbText: Scanning Images description: Dynamic Web TWAIN SDK HelloWorld - Scanning Images permalink: /hello-world/scanning.html -redirect_from: /getstarted/scanning.html - --- # Scanning Images @@ -77,7 +75,7 @@ Add this element in the HTML body to create a scanning button: Define the following function to handle scans, and add it in the `script` element created during initialization: -```JS +```javascript function AcquireImage() { if (DWTObject) { DWTObject.SelectSourceAsync().then( diff --git a/articles/hello-world/uploading.md b/articles/hello-world/uploading.md index 802e9914..e3f70a85 100644 --- a/articles/hello-world/uploading.md +++ b/articles/hello-world/uploading.md @@ -6,8 +6,6 @@ keywords: Dynamic Web TWAIN, Documentation, Hello World, upload, helloworld breadcrumbText: Uploading documents description: Dynamic Web TWAIN SDK Documentation - Uploading Images to the Server permalink: /hello-world/uploading.html -redirect_from: - - /getstarted/uploading.html --- # Uploading Images to the Server @@ -31,7 +29,7 @@ Insert this line in the `
` element of `HelloWorld.html` to create a button Here we define an upload function, as well as its helpers. Insert the following javascript in the existing `