Showing
1 changed file
with
0 additions
and
1 deletions
| @@ -52,7 +52,6 @@ pdf.addPage(pw.Page( | @@ -52,7 +52,6 @@ pdf.addPage(pw.Page( | ||
| 52 | To load an image from a file: | 52 | To load an image from a file: |
| 53 | 53 | ||
| 54 | ```dart | 54 | ```dart |
| 55 | -final img = decodeImage(); | ||
| 56 | final image = PdfImage.file( | 55 | final image = PdfImage.file( |
| 57 | pdf.document, | 56 | pdf.document, |
| 58 | bytes: File('test.webp').readAsBytesSync(), | 57 | bytes: File('test.webp').readAsBytesSync(), |
-
Please register or login to post a comment