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 May 24, 2021 3:51 pm

Hi, I'm facing some issues while converting rtf file to pdf.

Capture.PNG


This is the file preview on the rtf editor of the rtf file, but when it is read on the word, it looks weird, and unfortunately it's how it looks on the pdf file.

Is there a way to normalize these spaces?

Or even respect then to look exactly how it shows on the rtf editor?

Here's the code for converting the file:

Code: Select all
Document d = new Document("test.rtf");
d.SaveToFile("test.pdf", FileFormat.PDF);


I'm attaching both the rtf and pdf file for you to check it yourself.

Kind regards,

Luiz Gustavo Alves

tecnologiahub
 
Posts: 35
Joined: Mon Feb 12, 2018 11:07 am

Tue May 25, 2021 8:53 am

Hello,

Thanks for your inquiry.
Our Spire.Doc is based on Microsoft Word. I tried to open your rtf file in Microsoft Word and convert it to PDF, I got a similar result to our product. I’m afraid that it is not possible to keep this file display the same as rtf editor. Hope you can understand.

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Tue May 25, 2021 5:40 pm

I understand, we've opened the file on Microsoft Word and the file looked exactly how it looks on PDF.

We're going to help the users to make their RTF files in a different way for the PDF file to look better.

Kind Regards,

Luiz Gustavo Alves

tecnologiahub
 
Posts: 35
Joined: Mon Feb 12, 2018 11:07 am

Wed May 26, 2021 1:38 am

Hello,

Thank you very much for your understanding.
If you encounter any issues related to our products in the future, please feel free to contact us.

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Return to Spire.Doc