Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Coldfusion : How to include HTML table headers on new page when using cfdocument?

I have a table on a page with data generated from a query. This makes it unpredictable how many rows will be generated.

When using cfdocument to output the page as a PDF the table is often cut in two on the page break.

Is there any easy way to include the table labels on the new page for the purpose of clarity?

like image 867
blarg Avatar asked Oct 06 '22 01:10

blarg


1 Answers

I've had to work with cfdocument quite a bit and making it usable in certain situations can be a real bear.

I believe the answer to your question can be found on this page since you know how many records will be on each page (static row height): COLDFUSION: cfdocument and forcing a pagebreak

Here are some other questions I've posted and worked through concerning cfdocument, hope they help.

  • scale PDF to single page

  • cfdocument prevent page breaks mid-row

  • CFDocument still cutting off the tops of text on some pages
like image 118
genericHCU Avatar answered Oct 09 '22 21:10

genericHCU