ExtractImages() exception

Hi,

in my application I read a PDF and extract its images to process them later.

I discovered that some pdfs are corrupted due to problems during the transfer, and so far there are no problems as I closed the entire code block inside a try catch to intercept them.

I encountered the problem in a damaged PDF which opens correctly but when I call the ExtractImages() function on a page it throws an exception (screenshot attached)

Since it is an automatic procedure, I cannot know a priori whether the PDF is damaged or not, I just wanted to report this problem to find out if it is something normal or if it is something that can be fixed somehow.

Hope this can help


Attachment: exception_bbf46a85.rar

6 Replies

SL Sowmiya Loganathan Syncfusion Team October 26, 2023 11:48 AM UTC

We have examined the reported issue “The specified Key was not present in the dictionary” and it appears to be specific to the document. Could you please share the PDF documents which you’re encountering this problem, we will verify and offer a more suitable solution.



MC Massimo Cicognani replied to Sowmiya Loganathan October 26, 2023 12:32 PM UTC

This is a Pdf that report that specidfic type of issue


Attachment: damagedPdf_f25fd65d.rar


SL Sowmiya Loganathan Syncfusion Team October 27, 2023 10:12 AM UTC

We were replicated the reported issue “The specified Key was not present in the dictionary” and are presently in the validation phase. We will provide the additional details on October 31, 2023.



RB Ravikumar Baladhandapani Syncfusion Team October 31, 2023 01:43 PM UTC

The reported issues still need a lot more in-depth research; thus we are looking into them. On November 1st, 2023, further information will be updated.



RB Ravikumar Baladhandapani Syncfusion Team November 1, 2023 01:42 PM UTC

We have confirmed the issue “The specified Key was not present in the dictionary issue occurs while extracting images from the specific PDF document” as a defect in our product and we will include the fix in our upcoming weekly release which will be available on 7th November 2023

  

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

The specified Key was not present in the dictionary issue occurs while extracting images from the specific PDF in WinForms | Feedback Portal (syncfusion.com)


Note: If you require a patch for the reported issue in any of our Essential Studio Main or SP release version, then kindly let us know the version, so that we can provide a patch in that version based on our SLA policy.


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.”




KS Karmegam Seerangan Syncfusion Team November 7, 2023 09:43 AM UTC

We have included the fix for this issue The specified Key was not present in the dictionary issue occurs while extracting images from the specific PDF document fix in our latest weekly release (23.1.44).Please use the below link to download our latest NuGet,

Nuget Link: NuGet Gallery | Syncfusion.Pdf.WinForms 23.1.44


Loader.
Up arrow icon