PDF Generator Formatting

Hello,

I was wondering of a way to let the system know that if the items bleeds onto next page to insert page break at between items or between totals. Not just middle of the totals…

right now it’s

Last item

Subtotal

Page Break

Tax
Discount
Total

I’d prefer

LAST ITEM

Pg Break

totals

pg 2 only has 3 items… better yet auto scale if under a certain amount of lines…

Hi,

@david do you have any suggestions?

@SSP

Which design are you using? I believe the clean design will work the way you expect.

If you are using something like the Plain design, they you may see the behaviour you are describing. This can be resolved by creating a custom design based off the plain design.

Then in the Includes section find this block:

#table-totals {
        margin-top: 0rem;
        display: grid;
        grid-template-columns: 2fr 1fr;
        padding-top: 0rem;
        padding-right: 1rem;
        padding-left: 1rem;
        gap: 80px;
        page-break-inside:auto;
        overflow: visible !important;
    }

and change the

page-break-inside:auto;

line to

page-break-inside: avoid;
1 Like