string pathPdf = "";
WordDocument wordDocument = new WordDocument(pathdoc, FormatType.Automatic);
wordDocument.ChartToImageConverter = new ChartToImageConverter();
wordDocument.ChartToImageConverter.ScalingMode = ScalingMode.Normal;
DocToPDFConverter converter = new DocToPDFConverter();
pathPdf = Path + fileName + ".pdf";
//Converts Word document into PDF document
PdfDocument pdfDocument = converter.ConvertToPDF(wordDocument);
converter.Settings.EnableFastRendering = true;
wordDocument.Close();
//Releases the resources occupied by DocToPDFConverter instance
converter.Dispose();
//Saves the PDF file
pdfDocument.Save(pathPdf);
//Closes the instance of document objects
pdfDocument.Close(true);
Please, Help my project convert doc to pdf not fully format. So pdf lost line please see the pdf file.
Thanks
Attachment:
c1e0debfd2844094800846ded79664db_eb2d463f.rar