Hello,
Importing and exporting this pdf results in an unreadable text.
The attached image "ImportedFile" shows how the imported pdf looks like. The other image, "ExportedFile", shows the result of the export.
Here's a code example to import and export:
private
static
void
ImportAndExport()
{
var fixedDocFormatProvider =
new
Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.PdfFormatProvider();
RadFixedDocument fixedDocument;
var importFile = @
"C:\ImportedFile.pdf"
;
using
(var stream = File.OpenRead(importFile))
{
fixedDocument = fixedDocFormatProvider.Import(stream);
}
var formatProvider =
new
Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.PdfFormatProvider();
var exportFile = @
"C:\ExportedFile.pdf"
;
using
(var stream =
new
FileStream(exportFile, FileMode.Create))
{
formatProvider.Export(fixedDocument, stream);
}
}
Any ideas why is this happening?
Thanks