dart_pdf_editor
16.1.0, released 4 days ago by benmilanko.com
Flutter PDF editor and viewer with native rendering and editing tools
What it does
Provides drop-in Flutter widgets for viewing, searching, annotating, filling forms, signing, and editing PDF documents natively in Dart. Supports text selection, page splitting, and document comparison without relying on platform views.
AI-written summary of version 16.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need an embedded PDF viewer or full-featured editor inside a Flutter app.
- You want custom UI chrome and cross-platform support including web without native PDF library dependencies.
Skip it when
- You require absolute 100% PDFium interaction parity out-of-the-box for all complex edge cases.
- You want to avoid downloading optional assets like bundled fonts and web workers for features requiring full-font fallback.
Strengths
- Complete suite of built-in annotation, redaction, digital signature, and form-filling tools.
- Cross-platform support including web, iOS, Android, macOS, Windows, and Linux using pure-Dart rendering.
- Low setup friction with drop-in widgets and flexible controllers.
Weaknesses
- Default viewer does not yet reach full PDFium interaction parity for some complex metrics.
- Heavy asset requirements (bundled fonts and web worker) require an optional companion package for full fidelity.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 14
Add the package via pub.dev and optionally register bundled assets at startup using dart_pdf_editor_assets if font substitution or web workers are needed.
import 'package:dart_pdf_editor/dart_pdf_editor.dart';
PdfEditorView(
bytes: pdfBytes,
onSave: (bytes) => /* write the file */,
)Alternatives
Packages that do the same job and could replace dart_pdf_editor.
- flutter_pdfview
A Flutter plugin providing native PDFView widgets on Android and iOS.
76Compare - syncfusion_flutter_pdfviewer
Flutter PDF Viewer library to display PDF documents seamlessly and efficiently.
86Compare - pdfrx_engine
Pure Dart PDF rendering and manipulation API built on top of PDFium.
90Compare - file_selector_macos
macOS implementation of the file_selector plugin
82Compare
Works with
Packages commonly used together with dart_pdf_editor: ones it builds on, ones built on it, and its own family.
- archivedart_pdf_editor depends on itEncodes and decodes archive and compression formats such as zip, tar, gzip, and zlib.
- webdart_pdf_editor depends on itLightweight bindings for browser APIs via JS interop
- intldart_pdf_editor depends on itA Dart library for internationalization and localization, providing message translation, plural/gender handling, and date/number formatting.
- url_launcherdart_pdf_editor depends on itFlutter plugin for launching URLs across mobile, desktop, and web platforms.
- imagedart_pdf_editor depends on itPure Dart library to load, manipulate, encode, and decode various image formats.
- shared_preferencesdart_pdf_editor depends on itFlutter plugin for reading and writing simple key-value pairs. Wraps NSUserDefaults on iOS and SharedPreferences on Android.
- flutter_secure_storagedart_pdf_editor depends on itSecure key-value storage using platform-specific secure mechanisms
- material_uidart_pdf_editor depends on itOfficial Flutter Material UI library implementing Google’s Material Design system.