We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

The given key was not present in the dictionary

Thread ID:

Created:

Updated:

Platform:

Replies:

103404 Apr 27,2012 09:58 AM UTC Apr 30,2012 08:49 AM UTC ASP.NET Web Forms (Classic) 1
loading
Tags: PDF
Khalid Ashraf
Asked On April 27, 2012 09:58 AM UTC

Hi,

I have a pdf file which has 29 pages. First 28 pages are of normal pages size while page 29 is of different size. I have a code snippet that imports all pages one by one from this pdf file into other multiple pdfs. The code works fine untill it comes to the page 29. At this point when importing, it throws following exception:

The given key was not present in the dictionary.
at System.ThrowHelper.ThrowKeyNotFoundException()
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at Syncfusion.Pdf.PdfDocumentBase.ExportBookmarks(PdfLoadedDocument ldDoc, List`1 bookmarks, Dictionary`2 pageCorrespondance, Dictionary`2 bookmarkshash)
at Syncfusion.Pdf.PdfDocumentBase.ImportPageRange(PdfLoadedDocument ldDoc, Int32 startIndex, Int32 endIndex)
at Syncfusion.Pdf.PdfDocumentBase.ImportPage(PdfLoadedDocument ldDoc, Int32 pageIndex)
at Syncfusion.Pdf.PdfDocumentBase.ImportPage(PdfLoadedDocument ldDoc, PdfPageBase page)


Please note that I am using Syncfusion v7.4. Is this a known issue?

Thanks,
Khalid


Kesavan D [Syncfusion]
Replied On April 30, 2012 08:49 AM UTC

Hi Khalid,

Thank you for using Syncfusion products.

We are afraid that we could not reproduce the error mentioned by you, We have created a sample application which we tried to reproduce the error.

Could you please share us the source document which produced the error or please modify sample and send us. It would help us to reproduce and analyze the cause of the problem.

Please let us know if you have any questions.

Regards,
Kesavan



Sample_c146561d.zip

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;