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 Dec 13, 2016 7:52 pm

Hi,
I have a simple .docx file. I am trying to save as PDF with doc.SaveToFile(url, FileFormat.PDF) . It seems to run just fine, except the pdf has a bad font or no font.

I have attached a Zip of the before and after.

Please advise.

TalMcMahon
 
Posts: 7
Joined: Thu Apr 21, 2016 12:40 pm

Wed Dec 14, 2016 3:02 am

Dear TalMcMahon,

Thanks for your inquiry.
I have tested the file you provided with the latest Spire.Office Platinum (Hot Fix) Version:2.15.1, and I found the result( on attachment ) is better than yours. But I found the border of table is missing, and I have posted it to our Dev team. Once there is any progress, we will inform you immediately.
Sorry for inconvenience caused.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Wed Jan 11, 2017 6:22 am

Dear TalMcMahon,

By investigation, we found the issue that border is missing is difficult, we need more time to fix it.
As temporary solution, we suggest you use the following code to convert that file to pdf.
Code: Select all
            Document doc = new Document(@"F:\testing\doc form\original document\Problem.docx");
            ToPdfParameterList toPdf = new ToPdfParameterList();
            toPdf.UsePSCoversion = true;           
            doc.SaveToFile("9343tolist.pdf", toPdf);

Once there is any news about the issue, we will notify you immediately.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Return to Spire.Doc