Showing
1 changed file
with
9 additions
and
0 deletions
@@ -88,6 +88,15 @@ await Printing.layoutPdf( | @@ -88,6 +88,15 @@ await Printing.layoutPdf( | ||
88 | )); | 88 | )); |
89 | ``` | 89 | ``` |
90 | 90 | ||
91 | +Convert a Pdf to images, one image per page, get only pages 1 and 2 at 72 dpi: | ||
92 | + | ||
93 | +```dart | ||
94 | +await for (var page in Printing.raster(pdf.save(), pages: [0, 1], dpi: 72)) { | ||
95 | + final image = page.toImage(); | ||
96 | + // ...or page.toPng() | ||
97 | +} | ||
98 | +``` | ||
99 | + | ||
91 | ## Installing | 100 | ## Installing |
92 | 101 | ||
93 | 1. Add this to your package's `pubspec.yaml` file: | 102 | 1. Add this to your package's `pubspec.yaml` file: |
-
Please register or login to post a comment