Hi all, I'm trying to add a custom signature table...
# advancedpdf
e
Hi all, I'm trying to add a custom signature table under my Item table but how can I make It to stay there and not effect by ıtem line numbers. I mean, I want to keep my table width and height limited so If there 1 or 5 Item table stays same but more than 5 ıtems new ones should be appear on new page and doesn't push my other table
I want to keep fields that shown on second page on every page after Item table, not like this
m
Add a page break to the item table and put your signature box in your footer probably
e
I tried page-break-inside: avoid but coulnd't make It worked. Also I have some other fields too before signature, total table and terms notes etc. on the left
s
if you know the number, you can try #if using the modulo operator % to 5 load the list, count the list, using the if+modulo to signal the pagebreak
e
Never used ıf+modulo before
s
basically the modulo operator will allow you to divide by 5 and give you a remainder
when the remainder is 0 you know it's divisible by 5
e
You mean If/Else module?
s
this can probably give you a control on when the page break appears
something like <#assign itemListLength = item?size> <#if itemListLength%5==0> pagebreak </#if>
just as an idea
👍 1
e
Thanks Jeen, I'll try that
🙌 1