Unplanned
Last Updated: 23 Aug 2023 15:02 by Stefan
Stefan
Created on: 23 Aug 2023 15:02
Category: PdfProcessing
Type: Bug Report
1
PdfProcessing: ImageFormatProvider: System.AggregateException exception is thrown when exporting a document to an image

Some documents loaded through WordsProcessing and then exported to a RadFixedDocument by utilizing the ExportToFixedDocument() method, fails on export through ImageFormatProvider with System.AggregateException.

As a workaround, you can export the RadFixedDocument to a PDF and then import it again before exporting it to an image.

var pdfFixedProvider = new Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.PdfFormatProvider();
bytes = pdfFixedProvider.Export(fixedDocument);
fixedDocument = pdfFixedProvider.Import(bytes);

 

0 comments