Skip to content

pdf_manipulator 2.2.0

Choose a tag to compare

@github-actions github-actions released this 17 Jul 13:15
· 0 commits to 1a51770346fa906ddde6d4aa35dc1d5395060061 since this release

Warning

Retracted on pub.dev: the published archive was missing a build file (the engine's Cargo.lock), breaking trim and compile-from-source installs. Use 3.0.0, which consolidates everything here. Git-tag consumers (ref: v2.2.0) are unaffected — this tag and its binaries are complete.

  • Breaking: flattening CJK or emoji form values no longer uses a bundled font (it added 4.4 MB to every install). Register one once: await pdf.registerFallbackFont(PdfFallbackFontKind.cjk, fontBytes) (.emoji for emoji). Without one the value is still saved correctly — only the baked-in look falls back to the field's own font.
  • Engine updated — web: re-run flutter pub run pdf_manipulator:setup --force web (native updates itself)
  • Added trim — keep only the features your app uses (#167). Put trim: auto under hooks: user_defines: pdf_manipulator: in your app pubspec, or choose yourself with trim: {keep: [render, signatures]}; on web also run flutter pub run pdf_manipulator:setup --trim. Needs Rust — the engine compiles once on your machine and is cached. Wrong or missing pieces fail with a clear message, never a broken app.
  • Added Pdf.registerFallbackFont(PdfFallbackFontKind, Uint8List).
  • Changed the default binary: dead engine surfaces, unused barcode support, and the embedded fonts are gone — native 28.7 MB → 21.1 MB, gzipped web download 11.3 MB → 7.2 MB. No action needed.
Commits since v2.1.4 (7)

Install (git tag)

dependencies:
  pdf_manipulator:
    git:
      url: https://github.com/whuppi/pdf_manipulator.git
      ref: v2.2.0

Install (pub.dev)

dependencies:
  pdf_manipulator: ^2.2.0