binSaed / flutter_cached_pdfview

Enhanced PDF view for Flutter.
https://pub.dev/packages/flutter_cached_pdfview
MIT License
121 stars 70 forks source link

java.io.IOException: cannot create document: File not in PDF format or corrupted. #22

Closed Shah0786 closed 4 years ago

Shah0786 commented 4 years ago

Describe the bug java.io.IOException: cannot create document: File not in PDF format or corrupted.

To Reproduce Steps to reproduce the behaviour:

  1. Load pdf from cached url - first load is perfect and works as expected.
  2. once navigated to home and back to the pdf screen
  3. java.io.IOException: cannot create document: File not in PDF format or corrupted. is the error outputted

Expected behaviour I expected the pdf to load again on the same default page

PDF link: https://www.dbc.mandhdevelopments.co.za/system/qrcode/qrcode.php?id=19