Hi dharmendr,
Thank you immensely for the help.
Unfortunately, when the text is too long it overlaps the footer and the header that appears on the first page is not repeated on the second.
Refer
https://stackoverflow.com/questions/20050939/print-page-numbers-on-pages-when-printing-html