Search code examples
pdfcoldfusionpage-break

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?


Solution

  • 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.