dart_mupdf_donut 1.0.0 copy "dart_mupdf_donut: ^1.0.0" to clipboard
dart_mupdf_donut: ^1.0.0 copied to clipboard

A comprehensive pure Dart PDF library with OCR-free document understanding. Combines PyMuPDF-inspired PDF parsing (text/image extraction, annotations, page manipulation, PDF creation) with a Donut (Sw [...]

120/ 160
pub points
202
downloads

We analyzed this package 7 days ago, and awarded it 120 pub points (of a possible 160):

Failed report section
Follow Dart file conventions
20 / 30trigger folding of the section

Failed check 0/10 points: Provide a valid pubspec.yaml

The package description is too long.

Search engines display only the first part of the description. Try to keep the value of the description field in your package's pubspec.yaml file between 60 and 180 characters.

Passed check 5/5 points: Provide a valid README.md

Passed check 5/5 points: Provide a valid CHANGELOG.md

Passed check 10/10 points: Use an OSI-approved license

Detected license: MIT.

Passed report section
Provide documentation
20 / 20trigger folding of the section

Passed check 10/10 points: 20% or more of the public API has dartdoc comments

683 out of 1084 API elements (63.0 %) have documentation comments.

Some symbols that are missing documentation: dart_mupdf.Colorspace.n, dart_mupdf.Colorspace.name, dart_mupdf.CrossRefEntry.CrossRefEntry.new, dart_mupdf.DartMuPDF.annotCaret, dart_mupdf.DartMuPDF.annotCircle.

Passed check 10/10 points: Package has an example

Partially passed report section
Platform support
10 / 20trigger folding of the section

Partially passed check 10/20 points: Supports 6 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android

  • ✓ iOS

  • ✓ Windows

  • ✓ Linux

  • ✓ macOS

  • ✓ Web

These issues are present but do not affect the score, because they may not originate in your package:

Package not compatible with platform Web

Because:

  • package:dart_mupdf_donut/dart_mupdf.dart that imports:
  • package:dart_mupdf_donut/src/donut/donut.dart that imports:
  • package:dart_mupdf_donut/src/donut/utils/weight_loader.dart that imports:
  • package:dart_mupdf_donut/src/donut/decoder/bart_decoder.dart that imports:
  • package:dart_mupdf_donut/src/donut/tokenizer/tokenizer.dart that imports:
  • dart:io

WASM compatibility:

Package not compatible with runtime wasm

Because:

  • package:dart_mupdf_donut/dart_mupdf.dart that imports:
  • package:dart_mupdf_donut/src/donut/donut.dart that imports:
  • package:dart_mupdf_donut/src/donut/utils/weight_loader.dart that imports:
  • package:dart_mupdf_donut/src/donut/decoder/bart_decoder.dart that imports:
  • package:dart_mupdf_donut/src/donut/tokenizer/tokenizer.dart that imports:
  • dart:io

Note: This package supports Web but is not WASM-compatible, resulting in a partial score. See https://dart.dev/web/wasm for details.

Partially passed report section
Pass static analysis
40 / 50trigger folding of the section

Partially passed check 40/50 points: code has no errors, warnings, lints, or formatting issues

Found 127 issues. Showing the first 2:

INFO: Constructor declarations should be before non-constructor declarations.

lib/src/core/pdf_cross_ref.dart:67:9

   ╷
67 │   const CrossRefEntry({
   │         ^^^^^^^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/core/pdf_cross_ref.dart

INFO: Constructor declarations should be before non-constructor declarations.

lib/src/core/pdf_encryption.dart:60:3

   ╷
60 │   PdfEncryption({required this.encryptDict, required this.documentId});
   │   ^^^^^^^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/core/pdf_encryption.dart

Failed report section
Support up-to-date dependencies
30 / 40trigger folding of the section

Failed check 0/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest Notes
archive ^4.0.2 4.0.9 4.0.9
collection ^1.19.0 1.19.1 1.19.1
crypto ^3.0.6 3.0.7 3.0.7
image ^4.3.0 4.8.0 4.8.0
path ^1.9.0 1.9.1 1.9.1
pointycastle ^3.9.1 3.9.1 4.0.0
xml ^6.5.0 6.6.1 6.6.1
Transitive dependencies
Package Constraint Compatible Latest Notes
convert - 3.1.2 3.1.2
ffi - 2.2.0 2.2.0
js - 0.7.2 0.7.2 Discontinued
meta - 1.18.2 1.18.2
petitparser - 7.0.2 7.0.2
posix - 6.5.0 6.5.0
typed_data - 1.4.0 1.4.0

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

The constraint `^3.9.1` on pointycastle does not support the stable version `4.0.0`.

Try running dart pub upgrade --major-versions pointycastle to update the constraint.

Passed check 10/10 points: Package supports latest stable Dart and Flutter SDKs

Passed check 20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.23.11, Dart 3.11.2.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
1
likes
120
points
202
downloads

Documentation

Documentation
API reference

Publisher

unverified uploader

Weekly Downloads

A comprehensive pure Dart PDF library with OCR-free document understanding. Combines PyMuPDF-inspired PDF parsing (text/image extraction, annotations, page manipulation, PDF creation) with a Donut (Swin + BART) transformer for structured receipt, invoice, and form extraction from images. No native dependencies — works on all platforms.

Repository (GitHub)
View/report issues

Topics

#pdf #ocr #document-understanding #text-extraction #machine-learning

License

MIT (license)

Dependencies

archive, collection, crypto, image, path, pointycastle, xml

More

Packages that depend on dart_mupdf_donut