hello,
i'm working on function to export word to PDF, and the result is inconherent, i'm loosing the special caracter like "é" , "ô". the document is in french language, also the style of wording of the document.
this is my function, any suggestion to resolve it?
regards.
public static void ConvertWordtopdf(string input, string output)
{
var docxProvider = new Telerik.Windows.Documents.Flow.FormatProviders.Docx.DocxFormatProvider();
var pdfProvider = new Telerik.Windows.Documents.Flow.FormatProviders.Pdf.PdfFormatProvider();
try
{
//var docxBytes = File.ReadAllBytes(input);
var docxBytes = System.IO.File.OpenRead(input);
RadFlowDocument docx = docxProvider.Import(docxBytes);
var pdfBytes = pdfProvider.Export(docx);
File.WriteAllBytes(output, pdfBytes);
docxBytes.Dispose();
}
catch (Exception ex)
{
;
}
}