CSS to PDF, using THEAD for repeating header on new page?

If this is for one time only, perhaps you can simply open the page in a browser and export to PDF from the Print dialog.

If this is for one time only, perhaps you can simply open the page in a browser and export to PDF from the Print dialog. This way, the browser deals with correctly displaying the THEAD elements and you get your PDF output.

Interesting idea, I will look into this. Thanks. – littleK Jul 28 '09 at 12:21.

The open source Flying Saucer xhtmlrenderer html-to-pdf converter respects the THEAD tag since release R8 (April 2009). To repeat the THEAD on every page of PDF output, add the following to your CSS: table { -fs-table-paginate: paginate; }.

I really like Prince XML. It respects thead placement, and supports a lot of CSS. It is free for personal use at least.

I actually looked into Prince XML a lot, and it is very nice. However, ultimately I would need to purchase a server license ($4000), which is quite a bit. I'm looking for more of an open source alternative.

Thanks! – littleK Jul 28 '09 at 12:22.

For thead to repeat on every page the possible solution is to set it's style to: @media print { thead { display: table-header-group; } } This solves the problem in most browsers, but there is still a problem with dividing table rows on page break, they break in the middle. Although I do not know if such style is respected in html2pdf converters, there is a possibility to report this requirement to developers of open source converters.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions