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
208 changes: 104 additions & 104 deletions programming/javascript/api-reference/enum-barcode-format.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,109 +20,109 @@ codeAutoHeight: true
>
```javascript
enum EnumBarcodeFormat: {
/**No barcode format in BarcodeFormat*/
BF_NULL: bigint;
/**All supported formats in BarcodeFormat*/
BF_ALL: bigint;
/**Use the default barcode format settings*/
BF_DEFAULT: bigint;
/**Combined value of BF_CODABAR, BF_CODE_128, BF_CODE_39, BF_CODE_39_Extended, BF_CODE_93, BF_EAN_13, BF_EAN_8, INDUSTRIAL_25, BF_ITF, BF_UPC_A, BF_UPC_E, BF_MSI_CODE; */
BF_ONED: bigint;
/**Combined value of BF_GS1_DATABAR_OMNIDIRECTIONAL, BF_GS1_DATABAR_TRUNCATED, BF_GS1_DATABAR_STACKED, BF_GS1_DATABAR_STACKED_OMNIDIRECTIONAL, BF_GS1_DATABAR_EXPANDED, BF_GS1_DATABAR_EXPANDED_STACKED, BF_GS1_DATABAR_LIMITED*/
BF_GS1_DATABAR: bigint;
/**Code 39 */
BF_CODE_39: bigint;
/**Code 128 */
BF_CODE_128: bigint;
/**Code 93 */
BF_CODE_93: bigint;
/**Codabar */
BF_CODABAR: bigint;
/**Interleaved 2 of 5 */
BF_ITF: bigint;
/**EAN-13 */
BF_EAN_13: bigint;
/**EAN-8 */
BF_EAN_8: bigint;
/**UPC-A */
BF_UPC_A: bigint;
/**UPC-E */
BF_UPC_E: bigint;
/**Industrial 2 of 5 */
BF_INDUSTRIAL_25: bigint;
/**CODE39 Extended */
BF_CODE_39_EXTENDED: bigint;
/**GS1 Databar Omnidirectional*/
BF_GS1_DATABAR_OMNIDIRECTIONAL: bigint;
/**GS1 Databar Truncated*/
BF_GS1_DATABAR_TRUNCATED: bigint;
/**GS1 Databar Stacked*/
BF_GS1_DATABAR_STACKED: bigint;
/**GS1 Databar Stacked Omnidirectional*/
BF_GS1_DATABAR_STACKED_OMNIDIRECTIONAL: bigint;
/**GS1 Databar Expanded*/
BF_GS1_DATABAR_EXPANDED: bigint;
/**GS1 Databar Expanded Stacked*/
BF_GS1_DATABAR_EXPANDED_STACKED: bigint;
/**GS1 Databar Limited*/
BF_GS1_DATABAR_LIMITED: bigint;
/**Patch code. */
BF_PATCHCODE: bigint;
/**Code 32 */
BF_CODE_32: bigint;
/**PDF417 */
BF_PDF417: bigint;
/**QRCode */
BF_QR_CODE: bigint;
/**DataMatrix */
BF_DATAMATRIX: bigint;
/**AZTEC */
BF_AZTEC: bigint;
/**MAXICODE */
BF_MAXICODE: bigint;
/**Micro QR Code*/
BF_MICRO_QR: bigint;
/**Micro PDF417*/
BF_MICRO_PDF417: bigint;
/**GS1 Composite Code*/
BF_GS1_COMPOSITE: bigint;
/**MSI Code*/
BF_MSI_CODE: bigint;
/**Code 11 */
BF_CODE_11: bigint;
/**Two-Digit Add-On */
BF_TWO_DIGIT_ADD_ON: bigint;
/**Five-Digit Add-On */
BF_FIVE_DIGIT_ADD_ON: bigint;
/**Matrix 2 of 5 */
BF_MATRIX_25: bigint;
/**Combined value of BF_USPSINTELLIGENTMAIL, BF_POSTNET, BF_PLANET, BF_AUSTRALIANPOST, BF_RM4SCC.*/
BF_POSTALCODE: bigint;
/**Nonstandard barcode */
BF_NONSTANDARD_BARCODE: bigint;
/**USPS Intelligent Mail.*/
BF_USPSINTELLIGENTMAIL: bigint;
/**Postnet.*/
BF_POSTNET: bigint;
/**Planet.*/
BF_PLANET: bigint;
/**Australian Post.*/
BF_AUSTRALIANPOST: bigint;
/**Royal Mail 4-State Customer Barcode.*/
BF_RM4SCC: bigint;
/**KIX.*/
BF_KIX: bigint;
/**DotCode.*/
BF_DOTCODE: bigint;
/**_PHARMACODE_ONE_TRACK.*/
BF_PHARMACODE_ONE_TRACK: bigint;
/**PHARMACODE_TWO_TRACK.*/
BF_PHARMACODE_TWO_TRACK: bigint;
/**PHARMACODE.*/
BF_PHARMACODE: bigint;
/**Telepen*/
BF_TELEPEN: bigint;
/**Telepen Numeric. A variation of the Telepen format optimized for encoding numeric data only.*/
BF_TELEPEN_NUMERIC: bigint;
/**All supported formats in BarcodeFormat.*/
BF_ALL = 0xFFFFFFFEFFFFFFFF,
/**The default barcode format settings. It's a combined value of BF_ONED, BF_GS1_DATABAR, BF_PDF417, BF_QR_CODE, BF_DATAMATRIX, BF_AZTEC, BF_MAXICODE, BF_MICRO_QR, BF_MICRO_PDF417, BF_GS1_COMPOSITE*/
BF_DEFAULT = 0xFE3BFFFF,
/**Combined value of BF_CODABAR, BF_CODE_128, BF_CODE_39, BF_CODE_39_EXTENDED, BF_CODE_93, BF_EAN_13, BF_EAN_8, INDUSTRIAL_25, BF_ITF, BF_UPC_A, BF_UPC_E, BF_MSI_CODE, BF_CODE_11;*/
BF_ONED = 0x003007FF,
/**Combined value of BF_GS1_DATABAR_OMNIDIRECTIONAL, BF_GS1_DATABAR_TRUNCATED, BF_GS1_DATABAR_STACKED, BF_GS1_DATABAR_STACKED_OMNIDIRECTIONAL, BF_GS1_DATABAR_EXPANDED, BF_GS1_DATABAR_EXPANDED_STACKED, BF_GS1_DATABAR_LIMITED*/
BF_GS1_DATABAR = 0x0003F800,
/**Combined value of BF_USPSINTELLIGENTMAIL, BF_POSTNET, BF_PLANET, BF_AUSTRALIANPOST, BF_RM4SCC, BF_KIX.*/
BF_POSTALCODE = 0x3F0000000000000,
/**Code 39*/
BF_CODE_39 = 0x1,
/**Code 128*/
BF_CODE_128 = 0x2,
/**Code 93*/
BF_CODE_93 = 0x4,
/**Codabar*/
BF_CODABAR = 0x8,
/**Interleaved 2 of 5*/
BF_ITF = 0x10,
/**EAN-13*/
BF_EAN_13 = 0x20,
/**EAN-8*/
BF_EAN_8 = 0x40,
/**UPC-A*/
BF_UPC_A = 0x80,
/**UPC-E*/
BF_UPC_E = 0x100,
/**Industrial 2 of 5*/
BF_INDUSTRIAL_25 = 0x200,
/**CODE39 Extended*/
BF_CODE_39_EXTENDED = 0x400,
/**GS1 Databar Omnidirectional*/
BF_GS1_DATABAR_OMNIDIRECTIONAL = 0x800,
/**GS1 Databar Truncated*/
BF_GS1_DATABAR_TRUNCATED = 0x1000,
/**GS1 Databar Stacked*/
BF_GS1_DATABAR_STACKED = 0x2000,
/**GS1 Databar Stacked Omnidirectional*/
BF_GS1_DATABAR_STACKED_OMNIDIRECTIONAL = 0x4000,
/**GS1 Databar Expanded*/
BF_GS1_DATABAR_EXPANDED = 0x8000,
/**GS1 Databar Expaned Stacked*/
BF_GS1_DATABAR_EXPANDED_STACKED = 0x10000,
/**GS1 Databar Limited*/
BF_GS1_DATABAR_LIMITED = 0x20000,
/**Patch code.*/
BF_PATCHCODE = 0x00040000,
/**Code 32*/
BF_CODE_32 = 0x1000000,
/**PDF417*/
BF_PDF417 = 0x02000000,
/**QRCode*/
BF_QR_CODE = 0x04000000,
/**DataMatrix*/
BF_DATAMATRIX = 0x08000000,
/**AZTEC*/
BF_AZTEC = 0x10000000,
/**MAXICODE*/
BF_MAXICODE = 0x20000000,
/**Micro QR Code*/
BF_MICRO_QR = 0x40000000,
/**Micro PDF417*/
BF_MICRO_PDF417 = 0x00080000,
/**GS1 Composite Code*/
BF_GS1_COMPOSITE = 0x80000000,
/**MSI Code*/
BF_MSI_CODE = 0x100000,
/**Code 11*/
BF_CODE_11 = 0x200000,
/**Decode barcode with 2 digital addons.*/
BF_TWO_DIGIT_ADD_ON = 0x400000,
/**Decode barcode with 5 digital addons.*/
BF_FIVE_DIGIT_ADD_ON = 0x800000,
/**Matrix 25*/
BF_MATRIX_25 = 0x1000000000,
/**Telepen*/
BF_TELEPEN = 0x2000000000,
/**Telepen Numeric. A variation of the Telepen format optimized for encoding numeric data only.*/
BF_TELEPEN_NUMERIC = 0x4000000000,
/**Nonstandard barcode*/
BF_NONSTANDARD_BARCODE = 0x100000000,
/**USPS Intelligent Mail.*/
BF_USPSINTELLIGENTMAIL = 0x10000000000000,
/**Postnet.*/
BF_POSTNET = 0x20000000000000,
/**Planet.*/
BF_PLANET = 0x40000000000000,
/**Australian Post.*/
BF_AUSTRALIANPOST = 0x80000000000000,
/**Royal Mail 4-State Customer Barcode.*/
BF_RM4SCC = 0x100000000000000,
/**KIX.*/
BF_KIX = 0x200000000000000,
/**DotCode.*/
BF_DOTCODE = 0x200000000,
/**_PHARMACODE_ONE_TRACK.*/
BF_PHARMACODE_ONE_TRACK = 0x400000000,
/**PHARMACODE_TWO_TRACK.*/
BF_PHARMACODE_TWO_TRACK = 0x800000000,
/**PHARMACODE.*/
BF_PHARMACODE = 0xC00000000
/**No barcode format in BarcodeFormat.*/
BF_NULL = 0x00,
}
```
2 changes: 1 addition & 1 deletion programming/javascript/migrate-from-v10/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ needAutoGenerateSidebar: true
To use version 11, include the following script in your HTML:

```html
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader-bundle@11.4.3000/dist/dbr.bundle.js"></script>
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader-bundle@11.6.2100/dist/dbr.bundle.js"></script>
```

## APIs changes introduced in v11
Expand Down
1 change: 1 addition & 0 deletions programming/javascript/release-notes/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ breadcrumbText: Release Notes

# DBR JavaScript SDK - Release Notes

- [11.6.2100 (08/18/2026)](js-11.html#1162100-08182026)
- [11.6.2000 (08/13/2026)](js-11.html#1162000-08132026)
- [11.4.3000 (07/02/2026)](js-11.html#1143000-07022026)
- [11.4.2001 (04/24/2026)](js-11.html#1142001-04242026)
Expand Down
6 changes: 6 additions & 0 deletions programming/javascript/release-notes/js-11.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ noTitleIndex: true

# Release Notes for Dynamsoft Barcode Reader JavaScript SDK

## 11.6.2100(08/18/2026)

### Fixed

- Fixed an issue where `getSimplifiedSettings()` returned inaccurate results due to precision loss when the configured `barcodeFormatId` value exceeded `MAX_SAFE_INTEGER` in a Capture Vision templates.

## 11.6.2000 (08/13/2026)

### Highlights
Expand Down
32 changes: 16 additions & 16 deletions programming/javascript/user-guide/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ The complete code of the "Hello World" example is shown below
<body>
<div id="camera-view-container" style="width: 100%; height: 60vh"></div>
<textarea id="results" style="width: 100%; min-height: 10vh; font-size: 3vmin; overflow: auto" disabled></textarea>
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader-bundle@11.6.2000/dist/dbr.bundle.js"></script>
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader-bundle@11.6.2100/dist/dbr.bundle.js"></script>
<script>
Dynamsoft.License.LicenseManager.initLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9");
Dynamsoft.Core.CoreModule.loadWasm();
Expand Down Expand Up @@ -84,15 +84,15 @@ The complete code of the "Hello World" example is shown below
```

<p align="center" style="text-align:center; white-space: normal; ">
<a target="_blank" href="https://github.com/Dynamsoft/barcode-reader-javascript-samples/blob/v11.6.20/basics/hello-world.html" title="Code in Github" style="text-decoration:none;">
<a target="_blank" href="https://github.com/Dynamsoft/barcode-reader-javascript-samples/blob/v11.6.21/basics/hello-world.html" title="Code in Github" style="text-decoration:none;">
<img src="https://cdn.jsdelivr.net/npm/simple-icons@3.0.1/icons/github.svg" alt="Code in Github" width="20" height="20" style="width:20px;height:20px;">
</a>
&nbsp;
<a target="_blank" href="https://jsfiddle.net/DynamsoftTeam/csm2f9wb/" title="Run via JSFiddle" style="text-decoration:none;">
<img src="https://cdn.jsdelivr.net/npm/simple-icons@3.0.1/icons/jsfiddle.svg" alt="Run via JSFiddle" width="20" height="20" style="width:20px;height:20px;" >
</a>
&nbsp;
<a target="_blank" href="https://demo.dynamsoft.com/Samples/DBR/JS/basics/hello-world.html?ver=11.6.20&utm_source=guide" title="Run in Dynamsoft" style="text-decoration:none;">
<a target="_blank" href="https://demo.dynamsoft.com/Samples/DBR/JS/basics/hello-world.html?ver=11.6.21&utm_source=guide" title="Run in Dynamsoft" style="text-decoration:none;">
<img src="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.0.0/svgs/solid/circle-play.svg" alt="Run in Dynamsoft" width="20" height="20" style="width:20px;height:20px;">
</a>
</p>
Expand Down Expand Up @@ -137,7 +137,7 @@ The complete code of the "Hello World" example is shown below

### Run the example

You can run the example deployed to [the Dynamsoft Demo Server](https://demo.dynamsoft.com/Samples/DBR/JS/basics/hello-world.html?ver=11.6.20&utm_source=guide) or test it with [JSFiddle code editor](https://jsfiddle.net/DynamsoftTeam/csm2f9wb/).
You can run the example deployed to [the Dynamsoft Demo Server](https://demo.dynamsoft.com/Samples/DBR/JS/basics/hello-world.html?ver=11.6.21&utm_source=guide) or test it with [JSFiddle code editor](https://jsfiddle.net/DynamsoftTeam/csm2f9wb/).

You will be asked to allow access to your camera, after which the video will be displayed on the page. After that, you can point the camera at a barcode to read it.

Expand All @@ -151,7 +151,7 @@ Alternatively, you can test locally by copying and pasting the code shown above
>
> Regarding configuring https on your server, these guides for [nginx](https://nginx.org/en/docs/http/configuring_https_servers.html) / [IIS](https://aboutssl.org/how-to-create-a-self-signed-certificate-in-iis/) / [tomcat](https://dzone.com/articles/setting-ssl-tomcat-5-minutes) / [nodejs](https://nodejs.org/docs/v0.4.1/api/tls.html) might help.
>
> If the test doesn't go as expected, you can [contact us](https://www.dynamsoft.com/company/contact/?ver=11.6.20&utm_source=guide&product=dbr&package=js).
> If the test doesn't go as expected, you can [contact us](https://www.dynamsoft.com/company/contact/?ver=11.6.21&utm_source=guide&product=dbr&package=js).

## Preparing the SDK

Expand All @@ -170,29 +170,29 @@ The simplest way to include the SDK is to use either the [jsDelivr](https://jsde
- jsDelivr

```html
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader-bundle@11.6.2000/dist/dbr.bundle.js"></script>
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader-bundle@11.6.2100/dist/dbr.bundle.js"></script>
```

- UNPKG

```html
<script src="https://unpkg.com/dynamsoft-barcode-reader-bundle@11.6.2000/dist/dbr.bundle.js"></script>
<script src="https://unpkg.com/dynamsoft-barcode-reader-bundle@11.6.2100/dist/dbr.bundle.js"></script>
```

<!-- - In some rare cases (such as some restricted areas), you might not be able to access the CDN. If this happens, you can use the following files for the test.

```html
<script src="https://download2.dynamsoft.com/packages/dynamsoft-barcode-reader-bundle@11.6.2000/dist/dbr.bundle.js"></script>
<script src="https://download2.dynamsoft.com/packages/dynamsoft-barcode-reader-bundle@11.6.2100/dist/dbr.bundle.js"></script>
```

However, please **DO NOT** use `download2.dynamsoft.com` resources in a production application as they are for temporary testing purposes only. Instead, you can try hosting the SDK yourself. -->

- In frameworks like React, Vue and Angular, you may want to add the package as a dependency.

```sh
npm i dynamsoft-barcode-reader-bundle@11.6.2000 -E
npm i dynamsoft-barcode-reader-bundle@11.6.2100 -E
# or
yarn add dynamsoft-barcode-reader-bundle@11.6.2000 -E
yarn add dynamsoft-barcode-reader-bundle@11.6.2100 -E
```

NOTE that in frameworks, you need to [specify the location of the engine files](#2-optional-specify-the-location-of-the-engine-files).
Expand All @@ -205,14 +205,14 @@ Besides using the public CDN, you can also download the SDK and host its files o

- From the website

[Download Dynamsoft Barcode Reader JavaScript Package](https://www.dynamsoft.com/barcode-reader/downloads/?ver=11.6.20&utm_source=guide&product=dbr&package=js)
[Download Dynamsoft Barcode Reader JavaScript Package](https://www.dynamsoft.com/barcode-reader/downloads/?ver=11.6.21&utm_source=guide&product=dbr&package=js)

The resources are located at the path `dynamsoft-barcode-reader-js-{version-number}/dist/`.

- From npm

```sh
npm i dynamsoft-barcode-reader-bundle@11.6.2000 -E
npm i dynamsoft-barcode-reader-bundle@11.6.2100 -E
```

The resources are located at the path `node_modules/<pkg>`, without `@<version>`. You must copy "dynamsoft-xxx" packages elsewhere and add `@<version>`. The `<version>` can be obtained from `package.json` of each package. Another thing to do is to [specify the engineResourcePaths](#2-optional-specify-the-location-of-the-engine-files) so that the SDK can correctly locate the resources.
Expand All @@ -221,7 +221,7 @@ Besides using the public CDN, you can also download the SDK and host its files o
You can typically include SDK like this:

```html
<script src="path/to/dynamsoft-barcode-reader-bundle@11.6.2000/dist/dbr.bundle.js"></script>
<script src="path/to/dynamsoft-barcode-reader-bundle@11.6.2100/dist/dbr.bundle.js"></script>
```
<div class="multi-panel-end"></div>

Expand Down Expand Up @@ -253,7 +253,7 @@ To enable the SDK's functionality, you must provide a valid license. Utilize the
Dynamsoft.License.LicenseManager.initLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9");
```

As previously stated, the key "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9" serves as a test license valid for 24 hours, applicable to any newly authorized browser. To test the SDK further, you can request a 30-day free trial license via the <a href="https://www.dynamsoft.com/customer/license/trialLicense?ver=11.6.20&utm_source=guide&product=dbr&package=js" target="_blank">Request a Trial License</a> link.
As previously stated, the key "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9" serves as a test license valid for 24 hours, applicable to any newly authorized browser. To test the SDK further, you can request a 30-day free trial license via the <a href="https://www.dynamsoft.com/customer/license/trialLicense?ver=11.6.21&utm_source=guide&product=dbr&package=js" target="_blank">Request a Trial License</a> link.

> Upon registering a Dynamsoft account and obtaining the SDK package from the official website, Dynamsoft will automatically create a 30-day free trial license and embed the corresponding license key into all the provided SDK samples.

Expand Down Expand Up @@ -540,7 +540,7 @@ await cvRouter.startCapturing("ReadSingleBarcode");

The preset templates have many more settings that can be customized to suit your use case best. If you [download the SDK from Dynamsoft website](https://www.dynamsoft.com/barcode-reader/downloads/1000003-confirmation/), you can find the templates under

* "/dynamsoft-barcode-reader-js-11.6.2000/dist/templates/"
* "/dynamsoft-barcode-reader-js-11.6.2100/dist/templates/"

Upon completing the template editing, you can invoke the `initSettings` method and provide it with the template path as an argument.

Expand Down Expand Up @@ -642,7 +642,7 @@ The UI is part of the auxiliary SDK "Dynamsoft Camera Enhancer", read more on ho
### API Reference

You can check out the detailed documentation about the APIs of the SDK at
[https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/?ver=11.6.2000](https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/?ver=11.6.2000).
[https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/?ver=11.6.2100](https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/?ver=11.6.2100).

<!-- Compatibility is basically not an issue. Pls remove to another place

Expand Down
Loading
Loading