---
name: "PDF::Builder::Resource::XObject::Form::BarCode"
section: "3pm"
platform: "linux"
package: "perl-pdf-builder"
version: "3.028-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/PDF::Builder::Resource::XObject::Form::BarCode"
---

# PDF::Builder::Resource::XObject::Form::BarCode(3pm)

Base class for one-dimensional barcodes Inherits from PDF::Builder::Resource::XObject::Form::Hybrid

## NAME

PDF::Builder::Resource::XObject::Form::BarCode - Base class for one-dimensional barcodes

Inherits from PDF::Builder::Resource::XObject::Form::Hybrid

## METHODS

### new

```
    $barcode = PDF::Builder::Resource::XObject::Form::BarCode->new($pdf, %options)
```

Creates a barcode form resource.

### width

```
    $width = $barcode->width()
```

Returns the width of the bar code.

### height

```
    $height = $barcode->height()
```

Returns the height of the bar code.
