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

Hi,

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

Regards,

I.Prabhaharan.

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

Font size : TextState.FontSize | Aspose.PDF for .NET API Reference

Font name: Font.FontName | Aspose.PDF for .NET API Reference

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;
<strong>text.TextInfo.FontName = "Courier New";
text.TextInfo.FontSize = "20";</strong>