Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
dart_pdf
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
David PHAM-VAN
2020-01-03 18:50:47 -0500
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ea868602669fbc25b89b2495c8433f71ddff98bf
ea868602
1 parent
1207c2de
Add Printing.raster example
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
printing/README.md
printing/README.md
View file @
ea86860
...
...
@@ -88,6 +88,15 @@ await Printing.layoutPdf(
));
```
Convert a Pdf to images, one image per page, get only pages 1 and 2 at 72 dpi:
```
dart
await
for
(
var
page
in
Printing
.
raster
(
pdf
.
save
(),
pages:
[
0
,
1
],
dpi:
72
))
{
final
image
=
page
.
toImage
();
// ...or page.toPng()
}
```
## Installing
1.
Add this to your package's
`pubspec.yaml`
file:
...
...
Please
register
or
login
to post a comment