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.

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.

kriskm59
 
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!

BR
Suvi
e-iceblue support
User avatar

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

Return to Spire.Doc