HTMLDOC Table header row(s) to repeat on subsequent pages

Hello,

I need to display table headers on each page in the pdf generated using HTMLDOC.

For example, my table contains header as Name, Address, Age. It is displayed in first page. When the content of the table extends to next page, only the content is displayed and header is not displayed.

If you note, in the attached pdf, table header is displayed only in the first page, pasted in top and not in the second page which is pasted in the bottom.

Can anyone give a solution for this or suggest some related urls for reference?

Thanks.

Attachments: http://www.ruby-forum.com/attachment/3631/pdf.gif