Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Mon Jul 22, 2024 6:40 am

Hello,

I have changes between the old (v9.4.12) and the new dll of spire.doc.

When i generate a doc file and make an export to a pdf file the break line disappears.

the only solution I found is to create a new instance, load the word file and after export to word, and it works

Included you can find and example

vincentjam
 
Posts: 15
Joined: Tue Apr 13, 2021 10:08 am

Mon Jul 22, 2024 9:01 am

Hello,

Thanks for your inquiry.
To help us investigate your issue further, please provide us with your test code. Thanks in advance.

Sincerely,
William
E-iceblue support team
User avatar

William.Zhang
 
Posts: 419
Joined: Mon Dec 27, 2021 2:23 am

Mon Jul 22, 2024 9:09 am

I use the replace function :

doc.Replace(_balise, _text, true, true);

And i replace "_balise" with a "_text" including line break

vincentjam
 
Posts: 15
Joined: Tue Apr 13, 2021 10:08 am

Tue Jul 23, 2024 2:21 am

Hello,

Thanks for your reply.
Sorry, I'm afraid the code snippet you provided still doesn't help us investigate your issue further. Could you please provide us with your complete code?

Sincerely,
William
E-iceblue support team
User avatar

William.Zhang
 
Posts: 419
Joined: Mon Dec 27, 2021 2:23 am

Return to Spire.Doc