Declined
Last Updated: 08 Jul 2023 11:07 by ADMIN
Ted
Created on: 05 Jul 2023 16:41
Category: PdfProcessing
Type: Bug Report
0
PdfFormatProvider: "Import not supported" error

I'm trying to use the PdfFormatProvider to import a pdf. I've tried to import multiple different pdfs with the code below, but they all throw an exception with "System.InvalidOperationException: 'Import not supported.'" and no other info. Is this a bug or am I not calling the correct method to import a pdf?

var providerPDF = new Telerik.Windows.Documents.Flow.FormatProviders.Pdf.PdfFormatProvider();
providerPDF.Import(File.ReadAllBytes(@"D:\TestDocs\TestImage.pdf"));

1 comment
ADMIN
Yoan
Posted on: 08 Jul 2023 11:07

Hello Ted,

The error you are experiencing is most likely due to a different PDF provider you are referencing. For the import of PDF documents, the PdfFormatProvider which is located in the Telerik.Windows.Documents.Fixed.FormatProviders.Pdf namespace needs to be utilized. Also, the following assemblies need to be referenced:

  • Telerik.Windows.Documents.Core.dll
  • Telerik.Windows.Documents.Fixed.dll
  • Telerik.Windows.Zip.dll

Hope this helps. If you have any other questions feel free to ask.

Regards,
Yoan
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.