How to change the font name and size of footer's page number


#1

Hi,

How to change the font name and size of footer's page number.

Regards,

I.Prabhaharan.


#2

Please try the following code segment to set font name and size of footer's page number.

Font size : http://www.aspose.com/Products/Aspose.Pdf/Api/Aspose.Pdf.TextInfo.FontSize.html

Font name: http://www.aspose.com/Products/Aspose.Pdf/Api/Aspose.Pdf.TextInfo.FontName.html

++++++++++++++++++++++++++++++++++++

Pdf pdf = new Pdf();

Aspose.Pdf.HeaderFooter hf = new Aspose.Pdf.HeaderFooter();

Text text = new Text("page $p of $P");
text.TextInfo.Alignment = Aspose.Pdf.AlignmentType.Center;
text.TextInfo.FontName = "Courier New";
text.TextInfo.FontSize = "20";

++++++++++++++++++++++++++++++++++++