Generates a barcode image as svg-path (TPath.Data)
Barcode type | Barcode | Supported |
---|---|---|
Linear | EAN-8 | ✅ |
EAN-13 | ✅ | |
UPC-A | ✅ | |
UPC-E | ✅ | |
ITF-14 | ✅ | |
Code-128 | ✅ | |
GS-128 | ✅ | |
Databar | ❌ (future) | |
Two dimensioanl | DataMatrix | ❌ (future) |
QR Code | ❌ (future) | |
DotCode | ❌ (future) | |
Composite | ❌ (future) |
Add the module:
uses
Common.Barcode;
Get svg-path:
var
SVGString: string;
begin
SVGString := TBarcode.SVG(TBarcodeType.EAN8, '1234567');
end;
You can display the barcode through the TPath component:
var
DisplayBarcode: TPath;
begin
//...
DisplayBarcode.Data.Data := TBarcode.SVG(TBarcodeType.Code128, 'User:1234567');
//...
end;