COLDFUSION: cfdocument and forcing a pagebreak

后端 未结 4 1158
孤独总比滥情好
孤独总比滥情好 2020-12-19 04:58

I am creating a dynamic PDF in ColdFusion and having an issue with \"pagebreak\". The page in question could have 1 record, or up to 60+ records. Each record is displayed

4条回答
  •  甜味超标
    2020-12-19 05:22

    After wrestling with this issue on and off for several months, I've discovered that wrapping the contents of a td with a div (ie.

    Cell Contents
    ) will prevent a page-break inside the row. With this setup, a page-break that would normally split the row between pages will instead fall before the row, creating a little extra whitespace at the end of the first page and placing the row at the beginning of the next page.

    Note about rows with multiple cells: A single td-nested div is sufficient to cause the above behavior for the whole row.

    
        Blah blah blah blah blah
        Gnar gnar gnar gnar gnar
        
    Soda POP soda POP soda POP
    Stellar!

提交回复
热议问题