pdfcraft_barcode 1.2.3 copy "pdfcraft_barcode: ^1.2.3" to clipboard
pdfcraft_barcode: ^1.2.3 copied to clipboard

Barcode engine supporting Code128, EAN13, and UPC for the PDFCraft ecosystem.

example/pdfcraft_barcode_example.dart

// Example files are allowed to print to the console.
// ignore_for_file: avoid_print
import 'package:pdfcraft_barcode/pdfcraft_barcode.dart';
import 'package:pdfcraft_core/pdfcraft_core.dart';
import 'package:pdfcraft_generator/pdfcraft_generator.dart';

void main() {
  // Register the barcode renderer plugin
  GeneratorRegistry.instance.register(BarcodeRenderer());

  const barcodeField = FieldSchema(
    id: 'product_barcode',
    type: 'barcode',
    x: 50,
    y: 50,
    width: 200,
    height: 60,
    data: {
      'data': 'CODE128-EXAMPLE',
      'symbology': 'code128',
    },
  );

  print('Registered BarcodeRenderer and configured field: ${barcodeField.id}');
}
0
likes
160
points
231
downloads

Documentation

API reference

Publisher

verified publisherbytebunkers.in

Weekly Downloads

Barcode engine supporting Code128, EAN13, and UPC for the PDFCraft ecosystem.

Homepage
Repository (GitHub)
View/report issues

Funding

Consider supporting this project:

ko-fi.com
www.paypal.com

License

MIT (license)

Dependencies

flutter, pdf, pdfcraft_core, pdfcraft_generator

More

Packages that depend on pdfcraft_barcode