$barcodes
Updated on Aug 15, 2025 5 minutes to readThe Barcode Plugin provides convenient methods for generating and downloading barcode images directly in your application.
Properties
| Property | Description |
|---|---|
| C39 | CODE 39 - ANSI MH10.8M-1983 - USD-3 - 3 of 9 |
| C39_PLUS | CODE 39 with checksum |
| C39E | CODE 39 EXTENDED |
| C39E_PLUS | CODE 39 EXTENDED + CHECKSUM |
| C93 | CODE 93 - USS-93 |
| S25 | Standard 2 of 5 |
| S25_PLUS | Standard 2 of 5 + CHECKSUM |
| I25 | Interleaved 2 of 5 |
| I25_PLUS | Interleaved 2 of 5 + CHECKSUM |
| C128 | CODE 128 |
| C128A | CODE 128 A |
| C128B | CODE 128 B |
| C128C | CODE 128 C |
| EAN2 | 2-Digits UPC-Based Extension |
| EAN5 | 5-Digits UPC-Based Extension |
| EAN8 | EAN 8 |
| EAN13 | EAN 13 |
| UPCA | UPC-A |
| UPCE | UPC-E |
| MSI | MSI (Variation of Plessey code) |
| MSI_PLUS | MSI + CHECKSUM (modulo 11) |
| POSTNET | POSTNET |
| PLANET | PLANET |
| RMS4CC | RMS4CC (Royal Mail 4-state Customer Code) - CBC (Customer Bar Code) |
| KIX | KIX (Klant index - Customer index) |
| IMB | Intelligent Mail Barcode - Onecode - USPS-B-3200 |
| IMBPRE | Pre-processed Intelligent Mail Barcode - Onecode - USPS-B-3200, using only F,A,D,T letters |
| CODABAR | CODABAR |
| CODE11 | CODE 11 |
| PHARMA | PHARMACODE |
| PHARMA2T | PHARMACODE TWO-TRACKS |
| DATAMATRIX | DATAMATRIX (ISO/IEC 16022:2006) |
| PDF417 | PDF417 (ISO/IEC 15438:2006) |
| QRCODE_L | QR code with low error correction |
| QRCODE_M | QR code with medium error correction |
| QRCODE_Q | QR code with better error correction |
| QRCODE_H | QR code with best error correction |
Methods
| Method | Description |
|---|---|
| getDownloadUrl | Generates a barcode image and returns a URL to the generated image. |
| save | Generates a barcode image and returns it as a file object. |
Methods Details
getDownloadUrl()
• Type
(
config: BarcodeConfig,
schema?: boolean,
params?: BaseFileParams
) => string
• Details
Expects a BarcodeConfig object,
an optional schema flag (default: false) to indicate absolute or relative URL,
and optional BaseFileParams (default: {basename: 'barcode.png', inline:false}).
Returns a string containing the URL of the generated barcode image.
• Example
/**
* Generating a QR code for the link https://every8.cloud with a size of 300 × 300 px
*/
const url = E8App.$barcodes.getDownloadUrl(
{
type: E8App.$barcodes.QRCODE_M,
value: 'https://every8.cloud',
height: 300,
width: 300
},
true
);
// url now contains the URL to the generated barcode image
save()
• Type
(config: BarcodeConfig, params?: BaseFileParams) => FileInfo | null
• Details
Expects a BarcodeConfig object
and optional BaseFileParams (default: {basename: 'barcode.png', inline:false}).
Returns a FileInfo object representing the generated barcode file, or null if generation failed.
• Example
/**
* Generating a QR code for the link https://every8.cloud with a size of 300 × 300 px
*/
const fileInfo = await E8App.$barcodes.save(
{
type: E8App.$barcodes.QRCODE_M,
value: 'https://every8.cloud',
height: 300,
width: 300
}
);
// fileInfo now contains the generated barcode file