pdf_manipulator 3.0.0-dev.0
Pre-release
Pre-release
·
0 commits
to 8e78afc590bf0926f614300f5cd9cf62b8a37cb7
since this release
- 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)(.emojifor emoji). Without one the value is still saved correctly — only the baked-in look falls back to the field's own font. - Breaking (only if you took the retracted 2.2.0): the
trim-detectorvalueanalyzeris nowscan→ change it or delete the line — it is the default (PR #172) - 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: autounderhooks: user_defines: pdf_manipulator:in your app pubspec, or choose yourself withtrim: {keep: [render, signatures]}; on web also runflutter 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.
- Fixed the package forcing an old
analyzerversion onto your app, which blocked current freezed / json_serializable and friends. Theanalyzerdependency is gone:trim: autouses a dependency-free source scan. It can only keep slightly more than you use, never less — statetrim: {keep: [...]}yourself for the exact minimum (#171 reported by @DarkWingMcQuack, PR #172) - Fixed the package archive missing a build file (the engine's
Cargo.lock), which broketrimand every compile-from-source path with "No such file or directory" (#171 reported by @DarkWingMcQuack, PR #172) - Fixed the web compile error message telling you to install
wasm-pack— it is not used. The build now points at the tool it actually misses, with the exact install command (PR #172)
Commits since v2.2.0-dev.0 (5)
Install (git tag)
dependencies:
pdf_manipulator:
git:
url: https://github.com/whuppi/pdf_manipulator.git
ref: v3.0.0-dev.0Install (pub.dev)
dependencies:
pdf_manipulator: ^3.0.0-dev.0