From e4aa628e494db297d12180c77f6200c768f06bf9 Mon Sep 17 00:00:00 2001 From: tony-xlh Date: Thu, 11 Dec 2025 13:51:41 +0800 Subject: [PATCH 1/5] add download links on the service page --- .../dynamsoft-service-configuration.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/_articles/extended-usage/dynamsoft-service-configuration.md b/_articles/extended-usage/dynamsoft-service-configuration.md index 8383b666..8c465736 100644 --- a/_articles/extended-usage/dynamsoft-service-configuration.md +++ b/_articles/extended-usage/dynamsoft-service-configuration.md @@ -41,6 +41,18 @@ Once the installation is done, the users can click the orange sentence 'click he ![Initialization](/assets/imgs/Initialization-2.png) +### Download Links for the Service Installers + +Here is a table of links for the latest version. + +| Platform | Download Link | +| ------------- | --------------- | +| Windows | [Dynamic-Web-TWAIN-Service-Setup.msi](https://demo.dynamsoft.com/DWT/DWTResources/dist/DynamicWebTWAINServiceSetup.msi) | +| macOS | [Dynamic-Web-TWAIN-Service-Setup.pkg](https://demo.dynamsoft.com/DWT/DWTResources/dist/DynamicWebTWAINServiceSetup.pkg) | +| Linux | [Dynamic-Web-TWAIN-Service-Setup.deb](https://demo.dynamsoft.com/DWT/DWTResources/dist/DynamicWebTWAINServiceSetup.deb)
[Dynamic-Web-TWAIN-Service-Setup-arm64.deb](https://demo.dynamsoft.com/DWT/DWTResources/dist/DynamicWebTWAINServiceSetup-arm64.deb)
[Dynamic-Web-TWAIN-Service-Setup-mips64el.deb](https://demo.dynamsoft.com/DWT/DWTResources/dist/DynamicWebTWAINServiceSetup-mips64el.deb)
[Dynamic-Web-TWAIN-Service-Setup.rpm](https://demo.dynamsoft.com/DWT/DWTResources/dist/DynamicWebTWAINServiceSetup.rpm)| + +You can find the download links for different versions of service installers on [unpkg](https://app.unpkg.com/dwt@/files/dist/dist). + ## Installation Folder The service is installed in the following folders on different platforms by default. From 3209da7749b53df9569c2759db33907f0c44a670 Mon Sep 17 00:00:00 2001 From: tony-xlh Date: Thu, 11 Dec 2025 13:55:18 +0800 Subject: [PATCH 2/5] update Install the OCR Package --- _articles/extended-usage/ocr.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/_articles/extended-usage/ocr.md b/_articles/extended-usage/ocr.md index da7f703b..63f594ca 100644 --- a/_articles/extended-usage/ocr.md +++ b/_articles/extended-usage/ocr.md @@ -25,9 +25,11 @@ Read on to learn about how to use it. ### Step One - Install the OCR Package -Download [DynamicWebTWAINOCRResources.zip](https://download2.dynamsoft.com/dwt/DynamicWebTWAINOCRResources.zip), unzip it and run `Install.cmd` inside the `DynamicWebTWAINOCRPack.zip` file as admin to install the OCR package. It will copy an `ocr` folder to the service's [installation folder](/_articles/extended-usage/dynamsoft-service-configuration.md#installation-folder). (You need to install Dynamic Web TWAIN Service beforehand.) +Download [DynamicWebTWAINOCRResources.zip](https://download2.dynamsoft.com/dwt/DynamicWebTWAINOCRResources.zip), unzip it and run `Install.cmd` inside the `DynamicWebTWAINOCRPack.zip` file as admin to install the OCR package. -The `ocr` folder contains the runtime and model files that are required to perform on-device OCR. +It will copy an `ocr` folder to Dynamic Web TWAIN Service's [installation folder](/_articles/extended-usage/dynamsoft-service-configuration.md#installation-folder). The `ocr` folder contains the runtime and model files that are required to perform on-device OCR. + +PS: You need to [install Dynamic Web TWAIN Service](/_articles/extended-usage/dynamsoft-service-configuration.md#installation-of-dynamic-web-twain-service) beforehand. ### Step Two - Write a Basic Document Scanning Page From 78319bdb102d1b0b2eafe5be5a8631196e2da660 Mon Sep 17 00:00:00 2001 From: tony-xlh Date: Thu, 11 Dec 2025 14:12:01 +0800 Subject: [PATCH 3/5] fix unpkg link --- _articles/extended-usage/dynamsoft-service-configuration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_articles/extended-usage/dynamsoft-service-configuration.md b/_articles/extended-usage/dynamsoft-service-configuration.md index 8c465736..c70afe62 100644 --- a/_articles/extended-usage/dynamsoft-service-configuration.md +++ b/_articles/extended-usage/dynamsoft-service-configuration.md @@ -51,7 +51,7 @@ Here is a table of links for the latest version. | macOS | [Dynamic-Web-TWAIN-Service-Setup.pkg](https://demo.dynamsoft.com/DWT/DWTResources/dist/DynamicWebTWAINServiceSetup.pkg) | | Linux | [Dynamic-Web-TWAIN-Service-Setup.deb](https://demo.dynamsoft.com/DWT/DWTResources/dist/DynamicWebTWAINServiceSetup.deb)
[Dynamic-Web-TWAIN-Service-Setup-arm64.deb](https://demo.dynamsoft.com/DWT/DWTResources/dist/DynamicWebTWAINServiceSetup-arm64.deb)
[Dynamic-Web-TWAIN-Service-Setup-mips64el.deb](https://demo.dynamsoft.com/DWT/DWTResources/dist/DynamicWebTWAINServiceSetup-mips64el.deb)
[Dynamic-Web-TWAIN-Service-Setup.rpm](https://demo.dynamsoft.com/DWT/DWTResources/dist/DynamicWebTWAINServiceSetup.rpm)| -You can find the download links for different versions of service installers on [unpkg](https://app.unpkg.com/dwt@/files/dist/dist). +You can find the download links for different versions of service installers on [unpkg](https://app.unpkg.com/dwt/files/dist/dist). ## Installation Folder From 5b6f889d32b989a9588802139c9c1b96482347e2 Mon Sep 17 00:00:00 2001 From: tony-xlh Date: Thu, 11 Dec 2025 16:55:19 +0800 Subject: [PATCH 4/5] add link to online demo --- _articles/extended-usage/ocr.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/_articles/extended-usage/ocr.md b/_articles/extended-usage/ocr.md index 63f594ca..4af210c6 100644 --- a/_articles/extended-usage/ocr.md +++ b/_articles/extended-usage/ocr.md @@ -21,6 +21,10 @@ Read on to learn about how to use it. * A license with the OCR module ([30-day trial application](https://www.dynamsoft.com/customer/license/trialLicense?product=dwt)) * [DynamicWebTWAINOCRResources.zip](https://download2.dynamsoft.com/dwt/DynamicWebTWAINOCRResources.zip) +## Online Demo + +You can visit the [online demo](https://demo.dynamsoft.com/Samples/dwt/OCR/index.html) to try it. + ## How to Use ### Step One - Install the OCR Package From d6cc15f886f78706cbd07bd7b7201b5cb93a3dba Mon Sep 17 00:00:00 2001 From: Louie-Dynamsoft Date: Thu, 11 Dec 2025 17:04:23 +0800 Subject: [PATCH 5/5] Reworded load-pdf-files.md (#959) * Update load-pdf-files.md to clarify PDF/A loading requirements and rasterization details * Update _articles/faq/load-pdf-files.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- _articles/faq/load-pdf-files.md | 40 ++++++++++++++++----------------- 1 file changed, 19 insertions(+), 21 deletions(-) diff --git a/_articles/faq/load-pdf-files.md b/_articles/faq/load-pdf-files.md index 7af3f46c..95faa3be 100644 --- a/_articles/faq/load-pdf-files.md +++ b/_articles/faq/load-pdf-files.md @@ -7,39 +7,43 @@ keywords: Dynamic Web TWAIN, Addon, load pdf/a breadcrumbText: How can I load PDF/A files into the Dynamic Web TWAIN SDK? description: How can I load PDF/A files into the Dynamic Web TWAIN SDK? date: 2021-12-01 01:09:41 +0800 -last_modified: 2025-12-10 15:53:54 +0800 +last_modified: 2025-12-11 14:20:54 +0800 --- # Addon ## How can I load PDF/A files into the Dynamic Web TWAIN SDK? -Dynamic Web TWAIN can load PDF/A files, but whether the PDF Rasterizer add-on is required depends on the content of the PDF/A file: +Dynamic Web TWAIN can load PDF/A files. Whether you need the **[PDF Rasterizer Add-on (PDFR)](https://www.dynamsoft.com/web-twain/pdf-to-image-javascript/)** depends entirely on the contents of the PDF/A document: -- If the PDF/A contains text or vector graphics, it must be rasterized, and therefore requires the PDF Rasterizer add-on. -- If the PDF/A contains only raster images, it can be loaded without the PDF Rasterizer. +- If the PDF/A contains **text or vector graphics**, rasterization is required → **PDFR license needed**. +- If the PDF/A contains **only raster images**, the file can be loaded **without** the PDFR add-on. -You can programmatically check whether a file needs rasterization using [`IsRasterizationRequired()`](/_articles/info/api/Addon_PDF.html#israsterizationrequired): +> [!NOTE] +> **Looking for information about generating PDF/A files?** +> +> Starting from Dynamic Web TWAIN 19.3, PDF/A creation is supported. +> +> See: [How can I generate PDF/A files?](/_articles/faq/generate-pdf-files.md) + +### How to check whether rasterization is required + +You can programmatically detect whether a given PDF/A file requires rasterization before loading it: ```javascript DWTObject.Addon.PDF.IsRasterizationRequired(path); // returns true or false ``` -When enabled, the add-on automatically rasterizes PDF/A documents into images when they are loaded into the viewer. - -> [!NOTE] -> **Looking for information about generating PDF/A files?** -> Starting from Dynamic Web TWAIN 19.3, PDF/A creation is supported. -> See: [How can I generate PDF/A files?](/_articles/faq/generate-pdf-files.md) +If this method returns **`true`**, the SDK will need the PDFR to process the file. +### When rasterization actually happens -### When is PDF Rasterizer used? +Dynamic Web TWAIN performs rasterization **only when necessary**. If [`IsRasterizationRequired()`](/_articles/info/api/Addon_PDF.md#israsterizationrequired) returns **`true`** and the PDF Rasterizer license is configured, the SDK automatically rasterizes the PDF into images using the reader settings you specify. -Once the PDF Rasterizer (`PDFR`) is configured, it automatically rasterizes the file *only when needed*. -If rasterization is required, the PDF is converted into one or more images at the specified resolution (default **200 DPI**). +The rasterization behavior—including resolution (default **200 DPI**) and other rendering parameters—can be customized through [`SetReaderOptions()`](/_articles/info/api/Addon_PDF.md#setreaderoptions). -Rasterization may occur when using any of the following APIs (including drag-and-drop): +Rasterization may occur when using any of these APIs (including drag-and-drop): - [ `LoadImage()` ](/_articles/info/api/WebTwain_IO.md#loadimage) - [ `LoadImageEx()` ](/_articles/info/api/WebTwain_IO.md#loadimageex) - [ `LoadImageFromBase64Binary()` ](/_articles/info/api/WebTwain_IO.md#loadimagefrombase64binary) @@ -50,9 +54,3 @@ Rasterization may occur when using any of the following APIs (including drag-and - [ `HTTPDownloadEx()` ](/_articles/info/api/WebTwain_IO.md#httpdownloadex) - [ `HTTPDownloadThroughPost()` ](/_articles/info/api/WebTwain_IO.md#httpdownloadthroughpost) - [ `HTTPDownloadDirectly()` ](/_articles/info/api/WebTwain_IO.md#httpdownloaddirectly) - -### Important Change in v19.3 -Previous versions of Dynamic Web TWAIN did **not** support exporting PDF/A files. -As of **19.3**, you can now: -- Load PDF/A files (with or without the PDF Rasterizer, depending on content), and -- Generate PDF/A files.