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?
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, , .
PDF
cfdocument
,
<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>
, ( CF10, , , CFdoc, CF8 CF9):
, .