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.

Tue Aug 09, 2011 2:40 am

I have downloaded the evaluation version and implemented a small service to convert .doc, .docx and .rtf files to pdf.
There seem to be quite a lot of differences between the original document (Word), the generated pdf and a pdf that was saved directly from Word. Indents/Tabs and the font settings / page breaks don't seem to be converted incorrectly. Trying to load a rtf file for conversion throws an exception.

My conversion code is fairly simple:

document = new Document();
document.LoadFromFile(sFileIn);
document.SaveToFile(sFileOut, FileFormat.PDF);
document.Close();
document = null;

I've attached a zip file with the originals and converted pdf files. Are there any settings that I could use to archive a closer match?

Thanks for your help

andreasd
 
Posts: 1
Joined: Sun Aug 07, 2011 11:29 pm

Wed Aug 10, 2011 5:41 am

Dear andreasd,
Thanks for your inquiry.
#1 I loaded the rtf file successfully, no exeption.
#2 Your docx file was wrong, it's only 22byte.
#3 About the difference,we have been improving it. But no way to quickly resolve it, right now.
Justin
Technical Support / Developer,
e-iceblue Support Team
User avatar

Justin Weng
 
Posts: 110
Joined: Mon Mar 28, 2011 5:54 am

Tue Oct 11, 2011 8:20 am

This problem is fixed in Spire.Doc v4.1.2.
Harry
Technical Support / Developer,
e-iceblue Support Team
User avatar

harry.support
 
Posts: 180
Joined: Mon Nov 08, 2010 3:11 pm

Return to Spire.Doc