<@UV0TS4Y1F> about the only ways I can think of wo...
# advancedpdf
s
@Amber Thompson about the only ways I can think of would be to artificially limit your item table to no more than X # of lines (you may have to experiment to see at what # it goes to a second page), or to have a summarized print out that doesn’t use the line items at all, so you can control the layout exactly. Unfortunately, you can’t perform logic with the page number values. They are only computed by the PDF rendering engine (BFO), the FreeMarker template has no concept of pages. You can also try decreasing fonts size and margins to fit more into a page, but eventually things can become hard to read. What are you trying to achieve (or avoid) with this?
a
We create custom print documents for our clients that contain text area fields, along with an item table. Depending on the amount of content in the text fields and the number of items, the page size can exceed to more than one page. My initial thought was to try and add parameters around an overall table size
s
I guess the big decision to make is, if something has to be cut down to fit it in one page, would you rather cut off some of the text in the text fields, or lose some of the items in the item table. You could do one or the other, or even both, depending upon which is more or less valuable.