pdf 1.8.0 copy "pdf: ^1.8.0" to clipboard
pdf: ^1.8.0 copied to clipboard

outdated

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

example/main.dart

// ignore_for_file: always_specify_types

import 'dart:io';

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

void main() {
  final doc = pw.Document();

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

  final file = File('example.pdf');
  file.writeAsBytesSync(doc.save());
}
2482
likes
0
pub points
99%
popularity

Publisher

verified publishernfet.net

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

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

archive, barcode, crypto, image, meta, utf, vector_math

More

Packages that depend on pdf