Hi,We tried to convert a word document to a PDF with DocToPDFConverter.base, version 10.3.0.43 using the following code (VB.net 2010): Dim worddoc As WordDocument = New WordDocument
.........some code to append paragraph to the word doc......................
worddoc.Save("c:\\temp\\Sample.docx", FormatType.Automatic)
Dim converter As New DocToPDFConverter()
Dim pdfDoc As PdfDocument = converter.ConvertToPDF(worddoc)
pdfDoc.Save("c:\\temp\\Sample.pdf")
Attached .zip file contains both the source word document and the PDF converted result.As you can see, in the word document, the lines in every paragraph has an shift Enter (soft return) at the end of every line, in this way when "paragraph.ParagraphFormat.Keep = True", the word document can let every paragraph to be printed in one page (keep lines together). However, when using the upper code to convert the docx to the PDF document, all "shift enter" have been recognized as a space which combined all lines in paragraph together. As if you use office word "save as" function to save the word doc to a pdf, that way soft return can display properly and being recognized, So I am wondering if there is way to solve this issue or any work around for this scenario?
Thank you,
Regards,
Jiewen
wordToPdf_4ab91006.zip