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. Image for the cookie policy date

Doc convert to PDF mis-recognized "shift enter" inside the paragraph

Hi,

We  tried to convert a word document to a PDF with DocToPDFConverter.base, version 10.103.0.44 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:\\tony\\Sample.docx", FormatType.Automatic)
        Dim converter As New DocToPDFConverter()
        Dim pdfDoc As PdfDocument = converter.ConvertToPDF(worddoc)
        pdfDoc.Save("c:\\tony\\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 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 linked all lines in paragraph together.  I also download the latest package 2012 Vol 3 to try, it seems the issue is same. So I am wondering if there is way to solve this issue or any work around for this scenario? 

Thank you,

Regards,

Jiewen

1 Reply

DY Deivaselvan Y Syncfusion Team September 17, 2012 03:53 AM UTC

Hi Jiewen,

Thank you for using Syncfusion products.

We are unable to find an attachment from your previous update. Could you please provide us the input word document for reproducing the mentioned issue in Doc to PDF conversion, so that we can further analyze and update you with the appropriate details for this issue.

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.

Regards,
Deiva selvan

 


Loader.
Live Chat Icon For mobile
Up arrow icon