Flutter PDF Viewer Fails to load PDF with annotations.

Hello

I upgraded to Syncfusion_flutter_pdfviewer 26.2.13 and can't open the following pdf.  This used to work fine in version 22.1.39.  It has something to do with the terminal annotations.  I posted a link to the PDF below.  Any help would be greatly appreciated.

ERROR MESSAGE: "type 'double' is not a subtype of type 'int?' in type cast"

http://mmdc.nrs-corps.com/reports/reports.aspx?rID=-1483061148


Garrett


8 Replies

KS Karmegam Seerangan Syncfusion Team September 6, 2024 02:45 PM UTC

Hi Garrett,


Thank you for reaching out to Syncfusion support. Currently, we are working on the reported issue and will update further details on 9th, September 2024.


Regards,

Karmegam



JT Jeyalakshmi Thangamarippandian Syncfusion Team September 9, 2024 11:58 AM UTC

Hi Garrett,


We were able to reproduce the reported issue with the provided details on our end, and currently, we are analyzing it. We will provide further details on September 11th, 2024.


Regards,

Jeyalakshmi T



AG Anantha Gokula Raman Jeyaraman Syncfusion Team September 11, 2024 03:16 PM UTC

Hi Garrett,

We have confirmed the issue ”Type casting issue when loading annotations from a specific PDF document” as a defect in our product and fix will be included in our upcoming weekly release, which will be available on September 24, 2024.

Use the below feedback link to track the status of the reported bug.

Type casting issue when loading annotations from a specific PDF document in Flutter | Feedback Portal (syncfusion.com)

Disclaimer: “Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.”

Regards,

Anantha Gokula Raman J




GG Garrett Genova replied to Anantha Gokula Raman Jeyaraman September 11, 2024 08:29 PM UTC

Hi Anantha,


Is there a workout I can do to get it working until the update is ready?


Thanks,

Garrett



JT Jeyalakshmi Thangamarippandian Syncfusion Team September 12, 2024 12:57 PM UTC

Despite our efforts to resolve the issue and process the PDF with our library, the exception persists. This problem affects multiple pages in the specific document when retrieving annotations, and currently, there is no workaround to obtain the annotation count for those pages.

 

The fix for this issue will be included in our upcoming weekly release, scheduled for September 24, 2024.

 

Please use the feedback link below to track the status of the reported bug.

Type casting issue when loading annotations from a specific PDF document in Flutter | Feedback Portal (syncfusion.com)



GG Garrett Genova September 12, 2024 02:41 PM UTC

Ok, as long as it is fixed in your next update.  

Thanks



IJ Irfana Jaffer Sadhik Syncfusion Team September 25, 2024 05:50 AM UTC

Hi Garrett,


The fix for the reported issue "Failed to load annotations from the PDF document" has been included in our weekly NuGet release v27.1.50.

Kindly use the following link to refer to the latest release version,

syncfusion_flutter_pdf | Flutter package (pub.dev)


Regards,

Irfana J



IJ Irfana Jaffer Sadhik Syncfusion Team September 30, 2024 06:54 AM UTC

Root cause: While loading annotations from a PDF document, we parse the annotation dictionary from the page and determine the annotation type. During this process, a specific URI annotation was embedded with an integer value stored as a double, which led to a type casting issue.


Loader.
Up arrow icon