custom_pdf_converter 3.10.4 custom_pdf_converter: ^3.10.4 copied to clipboard
A pdf producer for Dart. It can create pdf files for both web or flutter.
import 'dart:io';
import 'package:custom_pdf_converter/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());
}