The given key was not present in the dictionary. When Merging PDFs

1 Answer 310 Views
PdfProcessing
Jon
Top achievements
Rank 1
Jon asked on 27 Sep 2021, 05:57 PM

Hello!

Have an issue w/ merging specific PDFs.  One thing that we noticed is we get the error when the following version of the Telerik.Windows.Documents.Fixed package:      <PackageReference Include="Telerik.Windows.Documents.Fixed" Version="2020.2.504" />

but it works correctly with the following package from 2018:

    <PackageReference Include="Telerik.Windows.Documents.Fixed">
      <Version>2018.1.220.40</Version>

Trying to figure out what the differences are between those package versions and if there is a work around for the 2020 version so we don't have to use the 2018 package.

The Code is failing on the provider.Import:

                    using (var pdfInputStream = GetPdfDocumentStream(client, uri))
                    {
                        RadFixedDocument document = provider.Import(pdfInputStream);
                        mergedPdf.Merge(document);
                    }

Thanks!

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 29 Sep 2021, 10:37 AM

Hi Jon,

I already answered this question in the private thread you have opened and the answer is that such behavior seems to be related to a regression in the import or merge functionalities of specific documents. In order to deeper investigate the case, I would like to ask you to send us the documents you are trying to merge so we can debug on our side. For confidential reasons, I could suggest sending them using the already opened private thread.

Regards,
Martin
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
PdfProcessing
Asked by
Jon
Top achievements
Rank 1
Answers by
Martin
Telerik team
Share this question
or