node-html-pdf icon indicating copy to clipboard operation
node-html-pdf copied to clipboard

Table Header Repeat

Open f-rostami opened this issue 7 years ago • 12 comments

Any Solution to repeat Header of HTML table in every page until reach end? i add this style to my html file,but not affect it `thead { display: table-header-group; display: table-row-group

  }`

f-rostami avatar Dec 16 '18 07:12 f-rostami

I have the same problem with "html-pdf": "^2.2.0". Table headers to do not repeat in subsequent pages when table flows to two or more pages.

tlaukkan avatar Apr 08 '19 12:04 tlaukkan

Facing the same problem. Can anyone suggest any another option for the same. Thanks in advance.

RajarshiSaha1985 avatar May 09 '19 07:05 RajarshiSaha1985

I'm also struggling with this.

trmpowell avatar Jun 17 '19 03:06 trmpowell

Same for me.

pigeonvictor avatar Jul 03 '19 13:07 pigeonvictor

Same Issue here if anyone has solutions please tell me.

Palak45 avatar Jul 04 '19 12:07 Palak45

Same for me. Is any one found solution for this issue?

rohitrelay avatar Sep 27 '19 16:09 rohitrelay

Same for me.

masoudsadeghiDev avatar Apr 18 '20 12:04 masoudsadeghiDev

In document we have an option to add pageHeader or pageFooter id prefix. https://www.npmjs.com/package/html-pdf#footers-and-headers

I relized option thead { display: table-header-group; display: table-row-group only work if you don't use pdf-html library

Try this, but you need to recustomize tabe header in thead because is not have same style with tbody

Example <thead id="pageHeader"> <tr><td><br/></td></tr> <tr><td><br/></td></tr> <tr><td></td></tr> <tr> <th>ID</th> <th>Name</th> <th>Mail</th> <th>Date</th> </tr> </thead> <!-- <tfoot> <tr><td>notes</td></tr> </tfoot> --> <tbody> <!-- Content --> </tbody>

the result image

Hope this help !!!

trileou avatar May 28 '20 03:05 trileou

How can we adjust the header possition as we needed on all the pages????

mayursonar111 avatar Jul 13 '20 13:07 mayursonar111

Please give a solution if any one solve this issue Thanks

muhammedfasil4042 avatar Mar 17 '21 15:03 muhammedfasil4042

Also need any solution for this '-'

augustosnk12 avatar May 04 '21 13:05 augustosnk12

Casi estamos en 2023 y todavía no hay solución :'v

luchex17 avatar Dec 21 '22 14:12 luchex17