Dart bindings for Mozilla's PDF.js library
Add this to your package's pubspec.yaml file:
dependencies:
pdfjs: ^1.10.90+4
You can install packages from the command line:
with pub:
$ pub get
Alternatively, your editor might support pub get
.
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
import 'package:pdfjs/pdfjs.dart';
Version | Uploaded | Documentation | Archive |
---|---|---|---|
1.10.90+4 | Oct 4, 2018 |
|
|
1.10.90+3 | Feb 28, 2018 |
|
|
1.10.90+2 | Jan 4, 2018 |
|
|
1.10.90+1 | Dec 4, 2017 |
|
|
1.10.90 | Nov 8, 2017 |
|
|
Popularity:
Describes how popular the package is relative to other packages.
[more]
|
31
|
Health:
Code health derived from static analysis.
[more]
|
96
|
Maintenance:
Reflects how tidy and up-to-date the package is.
[more]
|
52
|
Overall:
Weighted score of the above.
[more]
|
55
|
We analyzed this package on Feb 14, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
Detected platforms: web
Primary library:
package:pdfjs/pdfjs.dart
with components:html
,js
.
Document public APIs. (-1 points)
175 out of 175 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.
Fix lib/src/interfaces.dart
. (-2.96 points)
Analysis of lib/src/interfaces.dart
reported 6 hints, including:
line 90 col 5: Don't explicitly initialize variables to null.
line 90 col 15: Use =
to separate a named parameter from its default value.
line 91 col 32: Use =
to separate a named parameter from its default value.
line 118 col 5: Don't explicitly initialize variables to null.
line 118 col 15: Use =
to separate a named parameter from its default value.
Fix lib/src/pdf_page_proxy.dart
. (-0.50 points)
Analysis of lib/src/pdf_page_proxy.dart
reported 1 hint:
line 38 col 40: Don't explicitly initialize variables to null.
Provide a file named CHANGELOG.md
. (-20 points)
Changelog entries help developers follow the progress of your package. See the example generated by stagehand
.
The package description is too short. (-18 points)
Add more detail to the description
field of pubspec.yaml
. Use 60 to 180 characters to describe the package, what it does, and its target use case.
Maintain an example. (-10 points)
Create a short demo in the example/
directory to show how to use this package.
Common filename patterns include main.dart
, example.dart
, and pdfjs.dart
. Packages with multiple examples should provide example/README.md
.
For more information see the pub package layout conventions.
Package | Constraint | Resolved | Available |
---|---|---|---|
Direct dependencies | |||
Dart SDK | >=1.24.0 <3.0.0 |