We used Syncfusion Winforms c# Version 30.146.38. Docx convert to PDF Not rendering Properly
Title:
DocX to PDF Conversion Produces Incorrect Layout Rendering
Description:
When converting a Microsoft Word document (.docx) to PDF using Syncfusion WinForms Version 30.146.38, the resulting PDF does not preserve the original document layout. The converted output differs significantly in formatting, structure, and positioning of elements compared to the source .docx file.
Code
using DocToPDFConverter converter = new DocToPDFConverter();
converter.Settings.EmbedFonts = true;
converter.Settings.EmbedCompleteFonts = true;
using (var pdfDoc = converter.ConvertToPDF("MappedTablesNormalizedNrm.docx"))
{
//Save and close the document
FileStream outputStream = new
FileStream("MappedTablesNormalizedNrm.pdf", FileMode.Create,
FileAccess.ReadWrite, FileShare.ReadWrite);
pdfDoc.Save(outputStream);
converter.Dispose();
pdfDoc.Close();
outputStream.Flush();
outputStream.Dispose();
}
Attachment:
Attached_5233586c.zip