ScerIO/packages.flutter

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

Closed this issue · 1 comments

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

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