---
title: "IBarcodeOptions | Customer's Canvas On-Premises"
canonical: "https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-interfaces/IBarcodeOptions/"
---

# IBarcodeOptions

> A structure defining the barcode options.

## Interfaces

### IBarcodeOptions

#### Example

```json
{
   "defaultItemsConfig": {
       "barcode": {
           "barcodeOptions": {
               "margin": 0
           }
       }
   }
}
```

#### Properties

##### aztecLayers?

```ts
optional aztecLayers?: number;
```

##### characterSet?

```ts
optional characterSet?: string;
```

Specifies what character encoding to use when decoding.

##### code128ForceCodesetB?

```ts
optional code128ForceCodesetB?: boolean;
```

##### databarExpandedSegments?

```ts
optional databarExpandedSegments?: number;
```

##### disableEci?

```ts
optional disableEci?: boolean;
```

##### errorCorrection?

```ts
optional errorCorrection?: string;
```

##### margin?

```ts
optional margin?: number;
```

Specifies a margin, in pixels. This margin differs for barcode formats, for example, it controls the space before and after the barcode horizontally for linear formats.

##### pdf417Compact?

```ts
optional pdf417Compact?: boolean;
```

##### pdf417Compaction?

```ts
optional pdf417Compaction?: string;
```

##### pdf417Dimensions?

```ts
optional pdf417Dimensions?: object;
```

##### pureBarcode?

```ts
optional pureBarcode?: boolean;
```

If `true`, the image is a pure monochrome image of a barcode.

##### qrVersion?

```ts
optional qrVersion?: number;
```

The version of QR code to be encoded, in the range [1, 40].

##### xDimension?

```ts
optional xDimension?: number;
```
