Skip to content

pdf_manipulator 2.2.0-dev.0

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 17 Jul 07:56
· 0 commits to deb536c9eccb8a946b6d9b463319d1ed7ff3ed56 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-dev.0 (6)
  • deb536c release: v2.2.0-dev.0
  • ff1309d feat: trim — ship only the ops the app calls (#167) (#169)
  • 41155eb ci: bump dorny/paths-filter from 4.0.1 to 4.0.2 in the actions group (#165)
  • 7cde443 chore: refresh lockfiles (#166)
  • cefb01f Merge branch 'prod' into dev
  • cce6645 chore: promote dev to prod (2.1.3) (#158)

Install (git tag)

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

Install (pub.dev)

dependencies:
  pdf_manipulator: ^2.2.0-dev.0