ScerIO / packages.flutter

👨‍💻 Plugins and packages for Flutter framework
https://pub.dev/publishers/serge.software/packages
MIT License
453 stars 442 forks source link

[pdfx] Android : Close document throw a PlateformException with an Unknown error #500

Closed antoijo closed 6 months ago

antoijo commented 6 months ago

Describe the bug PlatformException when I try to close a PdfDocument

To Reproduce I opened a pdf with openData function then getPage() and page.render(). Once I get my PdfPageImage, I close the pdf with the close function.

This code works well on web and iOS, but on Android I get a PlatformException (more info in screenshot)

Screenshots

image

Additional context pdfx : 2.6.0 flutter : 3.19.5

antoijo commented 6 months ago

Sorry I realize I had to close the PdfPage before the PdfDocument.