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

Form engine, expression evaluation, and data binding for the PDFCraft ecosystem.

example/pdfcraft_form_example.dart

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

void main() {
  final context = {
    'user': {'name': 'Jane Doe', 'role': 'Administrator'},
    'order': {'subtotal': 150, 'taxRate': 0.10},
  };

  // 1. Evaluate string interpolation
  final engine = ExpressionEngine(data: context);
  final greeting = engine.evaluateInterpolatedString('Welcome, {{user.name}}! Role: {{user.role}}');
  print(greeting);

  // 2. Evaluate expressions dynamically
  final tax = engine.evaluateExpression('user.role');
  print('Evaluated Role: $tax');
}
0
likes
160
points
253
downloads

Documentation

API reference

Publisher

verified publisherbytebunkers.in

Weekly Downloads

Form engine, expression evaluation, and data binding 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, petitparser

More

Packages that depend on pdfcraft_form