pdfcraft_table 1.1.4 copy "pdfcraft_table: ^1.1.4" to clipboard
pdfcraft_table: ^1.1.4 copied to clipboard

Table engine, repeating rows, and pagination for the PDFCraft ecosystem.

example/pdfcraft_table_example.dart

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

void main() {
  // Register the table renderer plugin
  GeneratorRegistry.instance.register(TableRenderer());

  const tableField = FieldSchema(
    id: 'items_table',
    type: 'table',
    x: 40,
    y: 100,
    width: 500,
    height: 200,
    data: {
      'columns': ['Item', 'Quantity', 'Price'],
      'rows': [
        ['Widget A', '2', r'$50.00'],
        ['Widget B', '1', r'$100.00'],
      ],
    },
  );

  print('Registered TableRenderer and configured field: ${tableField.id}');
}
0
likes
140
points
250
downloads

Documentation

API reference

Publisher

verified publisherbytebunkers.in

Weekly Downloads

Table engine, repeating rows, and pagination 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_form, pdfcraft_generator

More

Packages that depend on pdfcraft_table