We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Convert HTML to PDF with page numbers?

I am following the example of converting a webpage to PDF here https://docs.aspose.com/display/pdfnet/Convert+a+File+to+PDF+Format#ConvertaFiletoPDFFormat-ConvertHTMLtoPDF-ResourceLoadingCallback 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!