dart_mupdf_donut 1.0.0
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 [...]
We analyzed this package 7 days ago, and awarded it 120 pub points (of a possible 160):
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.
5/5 points: Provide a valid README.md
5/5 points: Provide a valid CHANGELOG.md
10/10 points: Use an OSI-approved license
Detected license: MIT.
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.
10/10 points: Package has an example
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.dartthat imports:package:dart_mupdf_donut/src/donut/donut.dartthat imports:package:dart_mupdf_donut/src/donut/utils/weight_loader.dartthat imports:package:dart_mupdf_donut/src/donut/decoder/bart_decoder.dartthat imports:package:dart_mupdf_donut/src/donut/tokenizer/tokenizer.dartthat imports:dart:io
WASM compatibility:
Package not compatible with runtime wasm
Because:
package:dart_mupdf_donut/dart_mupdf.dartthat imports:package:dart_mupdf_donut/src/donut/donut.dartthat imports:package:dart_mupdf_donut/src/donut/utils/weight_loader.dartthat imports:package:dart_mupdf_donut/src/donut/decoder/bart_decoder.dartthat imports:package:dart_mupdf_donut/src/donut/tokenizer/tokenizer.dartthat 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.
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
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.
10/10 points: Package supports latest stable Dart and Flutter SDKs
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.