This is a migrated thread and some comments may be shown as answers.

Unreadable text after importing/exporting

1 Answer 102 Views
PdfProcessing
This is a migrated thread and some comments may be shown as answers.
Maurício
Top achievements
Rank 1
Maurício asked on 27 Sep 2016, 02:55 PM

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

1 Answer, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 30 Sep 2016, 10:59 AM
Hello MaurĂ­cio,

Thank you for contacting us.

The issue you are facing is related to PDF text properties import. This issue is already fixed and if you test with the latest official version of the product the file should be imported and exported correctly.

I hope this helps.

Regards,
Deyan
Telerik by Progress

Tags
PdfProcessing
Asked by
Maurício
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Share this question
or