pdf 2.1.0
pdf: ^2.1.0 copied to clipboard

Dart native js
Flutter Android iOS Linux macOS web Windows

A pdf producer for Dart. It can create pdf files for both web or flutter.

example/main.dart

import 'dart:io';

import 'package:pdf/widgets.dart' as pw;

Future<void> main() async {
  final pdf = pw.Document();

  pdf.addPage(
    pw.Page(
      build: (pw.Context context) => pw.Center(
        child: pw.Text('Hello World!'),
      ),
    ),
  );

  final file = File('example.pdf');
  await file.writeAsBytes(await pdf.save());
}
507
likes
110
pub points
97%
popularity

Publisher

nfet.net

A pdf producer for Dart. It can create pdf files for both web or flutter.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache 2.0 (LICENSE)

Dependencies

archive, barcode, crypto, image, meta, path_parsing, vector_math, xml

More

Packages that depend on pdf