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

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

example/pdfcraft_form_example.dart

// 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
0
points
252
downloads

Publisher

verified publisherbytebunkers.in

Weekly Downloads

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

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, pdf, pdfcraft_core, pdfcraft_generator, petitparser

More

Packages that depend on pdfcraft_form