Unreadable text after importing/exporting

2 posts, 0 answers
  1. Maurício
    Maurício avatar
    41 posts
    Member since:
    Jan 2011

    Posted 27 Sep Link to this post

    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

  2. Deyan
    Admin
    Deyan avatar
    136 posts

    Posted 30 Sep Link to this post

    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

Back to Top