Skip to content

Commit d0bab24

Browse files
authored
Merge pull request #436 from yqz5625/patch-1
Update enable-supported-barcode-format.md
2 parents a433bd1 + 3fdfd8f commit d0bab24

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

programming/javascript/faq/enable-supported-barcode-format.md

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ Explicitly enable **only the barcode formats covered by your license** in your c
1919

2020
### Step-by-Step Guide
2121

22-
1. **Check Your License Coverage**
23-
Confirm which barcode formats your license supports (e.g., QR Code + 1D barcodes).
22+
#### Step 1. Check Your License Coverage
23+
Confirm which barcode formats your license supports (e.g., QR Code + 1D barcodes).
2424

25-
2. **Configure Barcode Formats**
26-
Update your code to explicitly enable **only the licensed formats**.
27-
- Example for Enabling **Multiple Formats**(Use bitwise OR (|) to combine formats):
28-
<div class="sample-code-prefix"></div>
25+
#### Step 2. Configure Barcode Formats
26+
Update your code to explicitly enable **only the licensed formats**. Here are examples for enabling **Multiple Formats**(Use bitwise OR (|) to combine formats):
27+
28+
<div class="sample-code-prefix template2"></div>
2929
>- Javascript
3030
>- Objective-C
3131
>- Swift
@@ -34,7 +34,7 @@ Explicitly enable **only the barcode formats covered by your license** in your c
3434
>- C++
3535
>- C#
3636
>
37-
>
37+
>
3838
```javascript
3939
let settings = await router.getSimplifiedSettings("ReadSingleBarcode");
4040
// Enable QR Code only
@@ -48,7 +48,7 @@ await router.startCapturing("ReadSingleBarcode");
4848
DSBarcodeScannerConfig *config = [[DSBarcodeScannerConfig alloc] init];
4949
config.barcodeFormats = DSBarcodeFormatQRCode;
5050
```
51-
>
51+
>
5252
```swift
5353
let config = BarcodeScannerConfig()
5454
config.barcodeFormats = [.qrCode]
@@ -73,7 +73,7 @@ cvr_instance = CaptureVisionRouter()
7373
err_code, err_str, settings = cvr_instance.get_simplified_settings(EnumPresetTemplate.PT_READ_BARCODES.value)
7474
# Specify the barcode formats by enumeration values.
7575
# Use "|" to enable multiple barcode formats at one time.
76-
settings.barcode_settings.barcode_format_ids = EnumBarcodeFormat.BF_QR_CODE.value | EnumBarcodeFormat.BF_ONED.value
76+
settings.barcode_settings.barcode_format_ids = EnumBarcodeFormat.BF_QR_CODE.value | EnumBarcodeFormat.BF_ONED. value
7777
# Update the settings.
7878
err_code, err_str = cvr_instance.update_settings(EnumPresetTemplate.PT_READ_BARCODES.value, settings)
7979
```
@@ -106,6 +106,5 @@ using (CaptureVisionRouter cvr = new CaptureVisionRouter())
106106
}
107107
```
108108

109-
4. **Verify Supported Formats**
110-
111-
View the complete list of supported barcode formats and their corresponding IDs here: [Barcode Format Documentation](https://www.dynamsoft.com/capture-vision/docs/core/enums/barcode-reader/barcode-format.html?lang=js&product=dbr)
109+
#### Step 3. Verify Supported Formats
110+
View the complete list of supported barcode formats and their corresponding IDs here: [Barcode Format Documentation](https://www.dynamsoft.com/capture-vision/docs/core/enums/barcode-reader/barcode-format.html?lang=js&product=dbr)

0 commit comments

Comments
 (0)