Skip to content

Commit 9ff684d

Browse files
Merge pull request #782 from lyzhang0113/louie-branch
Added FAQ Page Regarding EAN and UPC Addon Codes
2 parents 581b8ac + 592ec59 commit 9ff684d

File tree

3 files changed

+55
-0
lines changed

3 files changed

+55
-0
lines changed

faq/general/configuration.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,5 @@ permalink: /faq/general/configuration.html
2424
6. [How to create custom settings template?](custom-settings-template.html)
2525

2626
7. [How can I sort the barcodes of my image in reading order?](sort-barcodes-image.html)
27+
28+
8. [How to Scan EAN/UPC with Addon Codes?](how-to-scan-ean-upc-with-addon.md)
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
---
2+
layout: default-layout
3+
title: How to Scan EAN/UPC with Addon Codes?
4+
keywords: Dynamsoft Barcode Reader, FAQ, tech basic, EAN-2, EAN-5, UPC–A, Add-On, supplement
5+
description: How to Scan EAN/UPC with Addon Codes?
6+
needAutoGenerateSidebar: false
7+
permalink: /faq/general/how-to-scan-ean-upc-with-addon.html
8+
---
9+
10+
# How to Scan EAN/UPC with Addon Codes?
11+
12+
[<< Back to FAQ index](index.md)
13+
14+
UPC and EAN are barcode formats commonly used for product identification. Both UPC and EAN codes can have supplemental 2-digit or 5-digit barcodes, typically found on the right side of the main code.
15+
16+
Dynamsoft Barcode Reader (DBR) does not enable reading such AddOn Codes with its default templates.
17+
18+
![EAN-13 + EAN-5 on a book](https://www.dynamsoft.com/codepool/img/2024/10/add-on/ean_13.jpg)
19+
![UPC-E + UPC-2 on a magazine](https://www.dynamsoft.com/codepool/img/2024/10/add-on/upc_e.jpg)
20+
21+
In order to read these types of barcodes, the property `EnableAddOnCode` in `BarcodeFormatSpecificationOptions` arrays must be set to `1`.
22+
23+
### Using JSON Templates
24+
25+
You can find all occurrences of `EnableAddOnCode` in your existing template file and set their values to `1` instead of the default `0`.
26+
27+
```json
28+
{
29+
"BarcodeFormatSpecificationOptions": [
30+
{
31+
"EnableAddOnCode": 1, // 1 to Enable AddOn Codes
32+
"Name": "bfs1",
33+
...
34+
},
35+
...
36+
],
37+
...
38+
}
39+
```
40+
41+
### Using JavaScript Code
42+
43+
```javascript
44+
let settings = await cvRouter.outputSettings();
45+
let formatOptionsArray = settings.BarcodeFormatSpecificationOptions;
46+
for (let index = 0; index < formatOptionsArray.length; index++) {
47+
const options = formatOptionsArray[index];
48+
options["EnableAddOnCode"] = 1;
49+
}
50+
```
51+

faq/general/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ permalink: /faq/general/index.html
4141

4242
7. [How can I sort the barcodes of my image in reading order?](sort-barcodes-image.md)
4343

44+
8. [How to Scan EAN/UPC with Addon Codes?](how-to-scan-ean-upc-with-addon.md)
45+
4446
## [License & Usage](license-usage.md)
4547

4648
1. [Can the SDK work without internet connection?](sdk-works-without-internet.md)

0 commit comments

Comments
 (0)