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: 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.