I'm printing a table containing an unknown number of rows to pdf - the output is printing to multiple pages automatically. However, the width of the columns on each page varies and I would like to overcome this, if possible.
Ideally, I would be able to repeat the header row on each page using a template, but I suspect this wouldn't affect the cell widths of subsequent rows.
I don't want to fix the cell widths on the table when the page is rendered, but I have tried to fix the width of all the cells using javascript immediately before printing. This had no affect, however.
What is the best way to deal with this?