syncfusion_flutter_pdf
35.2.12, released 2 days ago by syncfusion.com
Native Dart library for creating, reading, editing, and securing PDF files.
What it does
Allows programmatic creation and modification of PDF files including text, images, tables, lists, shapes, encryption, and digital signatures without relying on Adobe Acrobat. Runs across multiple platforms including mobile, desktop, and web.
AI-written summary of version 35.1.43, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to generate PDF reports or invoices programmatically.
- You need to read, extract text, or modify existing PDFs on device or web.
- You need to digitally sign, encrypt, or decrypt PDF documents.
Skip it when
- You cannot use a commercial or Syncfusion community license.
- You only need to display a PDF on screen using a UI viewer widget (this package is non-UI).
Strengths
- Feature-rich API supporting PDF creation, editing, tables, text extraction, and digital signatures.
- Cross-platform support including mobile, desktop, and web.
- Does not depend on external tools or Adobe Acrobat.
Weaknesses
- Requires a commercial or free community license from Syncfusion.
- Non-UI library, so rendering a visual view of a PDF requires additional UI components or wrappers.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 6
Requires importing the package and ensuring a valid Syncfusion license.
import 'package:syncfusion_flutter_pdf/pdf.dart';
final PdfDocument document = PdfDocument();
document.pages.add().graphics.drawString(
'Hello World!', PdfStandardFont(PdfFontFamily.helvetica, 12),
brush: PdfSolidBrush(PdfColor(0, 0, 0)),
bounds: const Rect.fromLTWH(0, 0, 150, 20));
File('HelloWorld.pdf').writeAsBytes(await document.save());
document.dispose();Alternatives
Packages that do the same job and could replace syncfusion_flutter_pdf.
- native_pdf_view
Flutter plugin to render and display PDF files across Web, macOS, Windows, Android, and iOS.
50Compare - file_selector_macos
macOS implementation of the file_selector plugin
82Compare - pdfrx_engine
Pure Dart PDF rendering and manipulation API built on top of PDFium.
90Compare - pdf
A PDF generation library for Dart and Flutter using a widget-like layout system.
89Compare
Works with
Packages commonly used together with syncfusion_flutter_pdf: ones it builds on, ones built on it, and its own family.
- cryptosyncfusion_flutter_pdf depends on itProvides SHA, MD5, and HMAC hashing functions for Dart.
- xmlsyncfusion_flutter_pdf depends on itFull-featured XML and XPath library for DOM parsing, SAX streaming, and fluent building.
- intlsyncfusion_flutter_pdf depends on itA Dart library for internationalization and localization, providing message translation, plural/gender handling, and date/number formatting.
- convertsyncfusion_flutter_pdf depends on itEncoders and decoders for converting between different data representations.
- syncfusion_flutter_coresyncfusion_flutter_pdf depends on itCore dependency for Syncfusion Flutter widgets, providing shared functionality.
- syncfusion_flutter_chartsSame familyA comprehensive charting library for creating cartesian, circular, and spark charts.
- syncfusion_flutter_signaturepadSame familyWidget to capture smooth hand-drawn signatures and export them as images.
- syncfusion_flutter_datepickerSame familyA Flutter widget for selecting single dates, multiple dates, or date ranges with various calendar views.