Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files from any .NET platform (C#, VB.NET, ASP.NET, .NET Core) and Java applications (J2SE and J2EE) with fast and high quality performance.

Wed Feb 22, 2012 11:02 am

Using Spire.Doc to generate word doc file.
Then we need this file to be saved as .doc and .pdf.
In doc file all is ok, but in pdf number of pages have default font (I change font for footer) - see attached file.

This is code:
Spire.Doc.Fields.TextRange tRangeC31 = paragraphC3.AppendField("pagenumber", Spire.Doc.FieldType.FieldPage);
tRangeC31.CharacterFormat.FontSize = footerFontSize;

Spire.Doc.Fields.TextRange tRangeC32 = paragraphC3.AppendText(" / ");
tRangeC32.CharacterFormat.FontSize = footerFontSize;

Spire.Doc.Fields.TextRange tRangeC33 = paragraphC3.AppendField("numberofpages", Spire.Doc.FieldType.FieldNumPages);
tRangeC33.CharacterFormat.FontSize = footerFontSize;

Have a nice day.
You do not have the required permissions to view the files attached to this post.

Posts: 11
Joined: Mon Oct 17, 2011 1:32 pm

Thu Feb 23, 2012 3:20 am

Hello kriskm59,

Thank you for reporting this problem to us.

We are so sorry that we need some more time to fix this problem. At the moment I cannot provide you any reliable estimate regarding this issue. However, you will surely be notified as soon as it is resolved. Sorry for inconvenience.

In case of any ambiguity, please let me know. Have a great day!

e-iceblue support
User avatar

Posts: 154
Joined: Thu Oct 20, 2011 2:53 am

Return to Spire.Doc