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

I have a table on the page with data retrieved from the request. This makes the number of rows unpredictable.

When using cfdocument to output a page in PDF format, the table is often cut in two at the page break.

Is there any easy way to include table shortcuts on a new page for clarity?

+5
source share
3 answers

I had to work with cfdocument quite a bit and make it suitable for use in certain situations, it can be a real bear.

, , , ( ): COLDFUSION: cfdocument

, cfdocument, , .

+4

,

<cfset amount="6" />
<cfdocument
format="pdf"
unit="cm"
pageType="A4"
filename="#path##name#.pdf">
 <cfoutput>
    <cfloop from="1" to="#amount#" index="i">
        <cfset filename = "#name#_#i#" />
        <cfimage
            action="convert"
            destination="#path#codes/#filename#.jpg"
            source="#path#codes/#filename#.png" />
        <img src="file://#path#codes/#filename#.jpg" style="width: 3.58cm; margin: 0 0.2cm 0.5cm;">
    </cfloop>
</cfoutput>

0

, ( CF10, , , CFdoc, CF8 CF9):

  • css: after (CFdocument css3)
  • thead {display: table-header-group; } ( )
  • javascript ( PDF js)
  • # cfdocument.currentpagenumber # cfdocument ( , , )
  • a (soundsOfTheDot , , , , , , ).
  • , ( , , , faux ).

, .

0

All Articles