<@UFHHRB5UZ> Add page-break-inside:avoid; into you...
# advancedpdf
m
@Budy Sutjijati Add page-break-inside:avoid; into your CSS for the table.
👍 2
b
ow, that looks promising. I will look into it further. Thanks 🙂
m
You can also use <p style=“page-break-after: always;“>TABLE</p>
b
Is there also a method like first page or last page? In some other document systems I’ve worked with I could use a similar method to place some texts on only the first or last page.
m
You can identify the first, but no way to know where the past page is. Freemarker doesn’t look after that.
b
Okay, too bad then.
s
I think you could achieve something like this using a pdfset. You could have three separate pdf's in the set, a "first page" pdf, a middle portion, and then a "last page" pdf, which will all be combined into a single PDF file. The only issue would be that each pdf gets it's own page numbers, so the middle document would start at page 1, even though it's the second page in the entire PDF file. The last page would also show page 1 for the pagination.
the sctructure would look like this: <pdfset> <pdf> ... </pdf> <pdf> ... </pdf> <pdf> ... </pdf> </pdfset>