Convert HTML to PDF with page numbers?

I am following the example of converting a webpage to PDF here Convert PDF documents using C# API|Aspose.PDF for .NET under the Convert Web Page to PDF section.

This is a very useful feature for us and working well so far. I have a question though as to how we can have the PDF conversion put page numbers on the result PDF?

@jojoshua,
You can add page number by using PageNumberStamp class before saving an HTML document into the PDF format, please refer to this help topic: Add Page Number Stamp in a PDF File. Kindly let us know in case of any confusion or questions.

Best Regards,
Imran Rafique

Perfect, thanks!