Hello milan,
We have rewritten the HeaderFooter class in the hotfix I provide you. In the new hotfix, set page number is much more convenient. You get what you want via the following code:
HeaderFooter foot = new HeaderFooter(sec1);
Text text = new Text(sec1, "page $p .");
foot.getParagraphs().add(text);
sec1.setOddFooter(foot);
sec1.setEvenFooter(foot);
To the symbol $p, you can refer to the document:
http://www.aspose.com/documentation/file-format-components/aspose.pdf-for-.net-and-java/symbols-list-and-purpose.html. But at present, only "$p, #$NL
, #$TAB" are supported at present.
Thank you for using our product.
Sandy.Zhang
Product Developer
Aspose Changsha Team
About UsContact Us