Unplanned
Last Updated: 30 Dec 2025 07:59 by ismayil
ismayil
Created on: 30 Dec 2025 07:59
Category: WordsProcessing
Type: Bug Report
0
WordsProcessing: DocxFormatProvider: Arabic text's Font size and font family changes after export

This is the code for import/export which result is illustrated below:

            string inputFilePath = "test1.doc";
            Telerik.Windows.Documents.Flow.Model.RadFlowDocument document;
            Telerik.Windows.Documents.Flow.FormatProviders.Doc.DocFormatProvider doc_provider = new Telerik.Windows.Documents.Flow.FormatProviders.Doc.DocFormatProvider();
            using (Stream input = File.OpenRead(inputFilePath))
            {
                document = doc_provider.Import(input, TimeSpan.FromSeconds(10));
            }

            Telerik.Windows.Documents.Flow.FormatProviders.Docx.DocxFormatProvider docx_provider = new Telerik.Windows.Documents.Flow.FormatProviders.Docx.DocxFormatProvider();
            string outputFilePath = "Exported.docx";
            using (Stream output = File.OpenWrite(outputFilePath))
            { 
                docx_provider.Export(document, output, TimeSpan.FromSeconds(10));
            }

            Process.Start(new ProcessStartInfo() { FileName = outputFilePath, UseShellExecute = true });

0 comments