# @salmonui/charts/barcode/pdf417 API reference

> 11 exported symbols of @salmonui/charts/barcode/pdf417: 1 component, 1 function, 5 interfaces and 4 types.

Canonical: https://salmonui.dev/docs/reference/charts/barcode-pdf417

```ts
import { … } from '@salmonui/charts/barcode/pdf417';
```

## Components

### Pdf417

Kind: component

Page: https://salmonui.dev/docs/reference/charts/barcode-pdf417/Pdf417

```ts
function Pdf417(props: Pdf417Props): ReactNode;
```

Props: [`Pdf417Props`](https://salmonui.dev/docs/reference/charts/barcode-pdf417/Pdf417Props) (its members are the props)

## Interfaces

### Pdf417Props

Kind: interface

Page: https://salmonui.dev/docs/reference/charts/barcode-pdf417/Pdf417Props

```ts
interface Pdf417Props extends SymbolBaseProps {
    readonly value: string;
    readonly compaction?: Pdf417Compaction | undefined;
    readonly errorCorrection?: Pdf417ErrorCorrection | undefined;
    readonly columns?: number | undefined;
    readonly rows?: number | undefined;
    readonly compact?: boolean | undefined;
    readonly rowHeightRatio?: number | undefined;
    readonly height?: number | undefined;
}
```

Members (20):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `text` | `text?: string \| boolean;` | optional, inherited | Human-readable text under the symbol: `true` shows the value, a string replaces it, `false` hides it. |
| `moduleSize` | `moduleSize?: number;` | optional, inherited | Module (narrow bar or dot) size in px. |
| `width` | `width?: number;` | optional, inherited | Total width in px (overrides `moduleSize`). |
| `quietZone` | `quietZone?: boolean;` | optional, inherited | Keep the quiet zone (default true). |
| `color` | `color?: string;` | optional, inherited | Bar color: a data color, default `#000000` (scanners need dark on light in every color scheme). |
| `value` | `readonly value: string;` |  | ISO 8859-1 text. |
| `compaction` | `readonly compaction?: Pdf417Compaction \| undefined;` | optional | Compaction mode (default `'auto'`). |
| `errorCorrection` | `readonly errorCorrection?: Pdf417ErrorCorrection \| undefined;` | optional | Error correction level 0 to 8 (default `'auto'`: the ISO recommended minimum for the data length). |
| `columns` | `readonly columns?: number \| undefined;` | optional | Data columns, 1 to 30 (default automatic, about 2:1 width to height). |
| `rows` | `readonly rows?: number \| undefined;` | optional | Rows, 3 to 90 (default automatic). |
| `compact` | `readonly compact?: boolean \| undefined;` | optional | Compact PDF417 (no right row indicator, one-module stop bar). |
| `rowHeightRatio` | `readonly rowHeightRatio?: number \| undefined;` | optional | Row height in modules (default 3). |
| `height` | `readonly height?: number \| undefined;` | optional | Total height in px: scales the rows. |
| `background` | `background?: string;` | optional, inherited | Background color: a data color, default `#ffffff`. |
| `label` | `label?: string;` | optional, inherited | Accessible name; default the encoded value. |
| `invalidLabel` | `invalidLabel?: string;` | optional, inherited | Accessible name when the value cannot be encoded (`{reason}` is replaced). Default `Invalid barcode: {reason}`. |
| `onInvalid` | `onInvalid?: ((event: BarcodeInvalidEvent) => void);` | optional, inherited |  |
| `ref` | `ref?: Ref<BarcodeApi>;` | optional, inherited |  |
| `className` | `className?: string;` | optional, inherited |  |
| `style` | `style?: CSSProperties;` | optional, inherited |  |

## Types

### Pdf417Compaction

Kind: type

Page: https://salmonui.dev/docs/reference/charts/barcode-pdf417/Pdf417Compaction

```ts
type Pdf417Compaction = 'auto' | 'text' | 'numeric' | 'byte';
```

### Pdf417ErrorCorrection

Kind: type

Page: https://salmonui.dev/docs/reference/charts/barcode-pdf417/Pdf417ErrorCorrection

```ts
type Pdf417ErrorCorrection = 'auto' | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
```

## Re-exported entry points

- [@salmonui/charts/chart/export](https://salmonui.dev/docs/reference/charts/chart-export.md): 3 symbols: 1 function, 1 interface and 1 type
  `ExportVisualizationsOptions`, `ExportableVisualization`, `exportVisualizations`
- [@salmonui/charts/barcode](https://salmonui.dev/docs/reference/charts/barcode.md): 4 symbols: 3 interfaces and 1 type
  `BarcodeApi`, `BarcodeExportOptions`, `BarcodeImageFormat`, `BarcodeInvalidEvent`
