We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Word doc Shift Enter (soft returns inside word paragraph) cannot be recognized when convert to PDF.

Thread ID:





105706 Nov 14,2012 08:31 PM UTC Nov 19,2012 11:59 AM UTC WinForms 1
Tags: DocIO
Tony Qu
Asked On November 14, 2012 08:31 PM UTC


We  tried to convert a word document to a PDF with DocToPDFConverter.base, version 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)
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,




Deivaselvan Y [Syncfusion]
Replied On November 19, 2012 11:59 AM UTC

Hi Jiewen,

Thank you for using Syncfusion products.

We are unable to reproduce the mentioned line break preservation issue in Doc to PDF conversion in the product version
Could you please check whether all our assemblies are referenced properly in the sample and ensure that there is no assembly conflicts exists in your system. For your reference, Please do find the converted PDF from the attachment.

Kindly provide us the sample along with the assemblies which you have used to reproduce the mentioned issue, so that we can further analyze and update you with the appropriate details.

Could you please report this issue through Direct Trac Developer Support System (https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents because you can take the advantage of the expertise of a dedicated support engineer and a guaranteed response time and we hope you will take advantage of this system as well. If you have already reported, please ignore this.

Please let us know if you have any other questions.

Deiva selvan



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon