-
Notifications
You must be signed in to change notification settings - Fork 837
[syncfusion_flutter_pdfviewer] Error opening a PDF document - Invalid cross reference table #2293
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
Comments
Hi @saurabhDetharia, we are able to replicate the reported issue that unable to load specific documents due to invalid argument error. Currently, we are validating this issue, and we will update further details once we found the root cause for this issue. |
Hi @saurabhDetharia, The fix for the reported issue "Invalid cross reference table issue occurs while loading the specific PDF document" has been included in our latest weekly release v29.1.37. Package link: syncfusion_flutter_pdf 29.1.37, syncfusion_flutter_pdfviewer 29.1.37 Root Cause : The escape characters are not handled properly while loading the annotation. Therefore, Invalid cross reference table issue occurs while loading the specific PDF document We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance. Regards, |
I have some PDF files that are valid — I can open them using Chrome or any other PDF reader without any issues. So, I'm investigating running the
Could this error be related to this issue? Current version: 29.1.38 (also tested on 29.1.37) (testing on web platform) |
Hi @danieletulone, If you feel that the documents cannot be shared publicly, you may create a ticket in our support portal to share the requested files securely. |
Hi @immankumarsync, |
Bug description
While loading some PDF documents in Flutter using SfPdfViewer.file returns an error. I have attached some PDFs for the reference.
computer_networks.pdf
sample.pdf
I also tried to load using the same file from the network source and it is having the same issue. Here is the source URL for the pdf I have used.
I have also referred here forum, but could not find the way to implement the below mentioned snippet (as suggested in the forum) in the SfPdfViewer. Is there any way to either resolve the exception or load such PDF files?
Steps to reproduce
flutter create syncfusion_pdfviewer_poc
flutter pub add syncfusion_flutter_pdfviewer
Code sample
Code sample
main.dart
pubspec.yaml
Screenshots or Video
Screenshots / Video demonstration
PDF.Loading.Issue.mp4
Stack Traces
Stack Traces
On which target platforms have you observed this bug?
Android, iOS
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: