Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDF Viewer Displays Blank or Error on Mobile Browsers in Flutter Web for some PDF file #552

Open
LoadJulz opened this issue Jan 17, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@LoadJulz
Copy link

Describe the bug
I have a Flutter Web app that handles different PDFs. One of the PDFs displays correctly without any issues. However, another PDF behaves differently: it displays properly on a desktop browser, but when accessed via a mobile browser, the behavior changes. On Android, it shows a blank page, and on iOS, an icon appears, which seems to indicate a corrupted PDF file. Additionally, the onDocumentError callback isn't being triggered.

To help diagnose the issue, I have attached both the failing PDF and the working PDF to this post. For reference, the failing PDF is 3.5 MB in size, while the working one is only 100 KB.

Does anyone have any idea what might be causing this behavior? Any insights or suggestions would be greatly appreciated.

failing.pdf

working.pdf

@LoadJulz LoadJulz added the bug Something isn't working label Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants