Completed
Last Updated: 12 Feb 2025 15:21 by ADMIN
Release 2025.1.205 (2025 Q1)
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