Skip to content
pubscout

dart_pdf_editor

16.1.0, released 4 days ago by benmilanko.com

Flutter PDF editor and viewer with native rendering and editing tools

Uses material_ui
$ flutter pub add dart_pdf_editor
Source repository

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.

Works with

Packages commonly used together with dart_pdf_editor: ones it builds on, ones built on it, and its own family.