0

I'm new to iText7. The question might be very trivial. When using iTextSharp, I was able to create PdfTemplate first and then use PdfContentByte.AddTemplate to add additional contents to the template for header and footer. The Footer template was very useful in getting the Page # of total# when closing the document. Does iText7 have similar feature? If not, what can be used for achieving this?

Thanks for your helps in advance! Baolin

Baolin Li
  • 103
  • 1
  • 7
  • You might be interested in [this answer](https://stackoverflow.com/a/38605857/1729265) to ["How to add a “Page X of Y” footer in iText 7"](https://stackoverflow.com/q/38588704/1729265); it is for Java but should be trivial to port. – mkl Feb 18 '20 at 15:20
  • Yes, I've checked out that and it worked for me. Thanks. – Baolin Li Feb 20 '20 at 12:39

0 Answers0