lohanidamodar / pdf_viewer

A flutter plugin for handling PDF files. Works on both Android & iOS
https://pub.dev/packages/advance_pdf_viewer
BSD 3-Clause "New" or "Revised" License
61 stars 143 forks source link

Changing the pdf doesn't work without clearing app data #115

Open Nana-Kwame-bot opened 1 year ago

Nana-Kwame-bot commented 1 year ago

Hello, thanks for this package. An issue I have been having but can't solve is that when I change the pdf, (the asset path is the same) and use PDFDocument.fromAsset, it still loads the old file in memory. How to clear this or force a recheck. I get the caching it will be nice for big files but what if I want to change the pdf and make sure it has the same name? I can't tell the users of my app to clear their app data, it'll clear most other important stuff. What to do?