David PHAM-VAN

Add Printing.raster example

@@ -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: