From f1aabeaaded0670ace8b8b12b7e08f5ab493ba62 Mon Sep 17 00:00:00 2001 From: DMGithubPublisher Date: Wed, 5 Nov 2025 15:39:54 +0800 Subject: [PATCH 1/2] update to internal commit 98764031 --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 79c2461..035788a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,7 +8,7 @@ on: push: branches: - main - #- preview + - preview # Allows you to run this workflow manually from the Actions tab workflow_dispatch: From 59866272d2fb9f573eea95c93ac66213692974c4 Mon Sep 17 00:00:00 2001 From: Justin Date: Thu, 25 Dec 2025 17:13:14 +0800 Subject: [PATCH 2/2] Update loadSpec documentation to clarify specificationPath usage and add remarks on resource merging --- .../javascript/api-reference/code-parser-module-class.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/programming/javascript/api-reference/code-parser-module-class.md b/programming/javascript/api-reference/code-parser-module-class.md index d245cb3..31bb367 100644 --- a/programming/javascript/api-reference/code-parser-module-class.md +++ b/programming/javascript/api-reference/code-parser-module-class.md @@ -44,7 +44,7 @@ loadSpec(specificationName: string | Array, specificationPath?: string): **Parameters** * `specificationName`: specifies the name of the specification. -* `specificationPath`: specifies the path to find the specification file. If not specified, the method will try to load the file from the path specified for the "dcp" module in `Dynamsoft.Core.CoreModule.engineResourcePaths`. For example, if the path for the "dcp" module is "https://cdn.jsdelivr.net/npm/dynamsoft-code-parser@2.0.20/dist/", then calling `Dynamsoft.DCP.CodeParserModule.loadSpec("AADHAAR")` will load the file "AADHAAR.data" from "https://cdn.jsdelivr.net/npm/dynamsoft-code-parser@2.0.20/dist/specification/AADHAAR.data". +* `specificationPath`: specifies the path to find the specification file. If not specified, the method will try to load the file from the path specified in `Dynamsoft.Core.CoreModule.engineResourcePaths`. For example, if the engineResourcePaths.rootDirectory = "https://cdn.jsdelivr.net/npm/", then calling `Dynamsoft.DCP.CodeParserModule.loadSpec("AADHAAR")` will load the file "AADHAAR.data" from "https://cdn.jsdelivr.net/npm/dynamsoft-capture-vision-data/parser-resources/AADHAAR.data". **Code Snippet** @@ -52,6 +52,11 @@ loadSpec(specificationName: string | Array, specificationPath?: string): await Dynamsoft.DCP.CodeParserModule.loadSpec("AADHAAR"); ``` +**Remarks** + +Starting from CaptureVisionBundle version 3.4.1000, some specification resources have been merged. The complete set of current resources can be found at: +https://www.npmjs.com/package/dynamsoft-capture-vision-data + ### onSpecLoadProgressChanged An event that fires during the loading of specification files.