Upland OL User community

How to insert a "page break"

I am trying to create a simple multipage letter; first page is used as a nomal welcome letter with an address field etc.

After a small portion of text, I want to make sure that thenext content automatically starts either on the back-page or on a new sheet.

How can I do that?

Is there any special construct that does a page-break?

Hello Thomas,

Page-breaking is handled through the formatting properties: most objects (paragraphs, tables, divs, etc) have the ability to force a page break before or after the element, whichever is more convenient. For example in the Paragraph Formatting dialog, under the Breaks group, you can see Before and After - simply set the one you want to “Always”.

This is equivalent to the page-break-before CSS property.


This behaviour seems erratic, I have this simple html

<div style="page-break-after: always;"></div>
First Break
<div style="page-break-after: always;"></div>
Second Break

Only the first break happens but the second break doesnt. Its so frustrating.

Any idea?
Thanks in advanced.

UPDATED: This actually happens now, but I just need to set it to page-break-before:always instead of after.And changing it to this works!

<div style="page-break-before: always;"> First Break</div>
<div style="page-break-before: always;"> Second Break</div>

Ensuring that the div contains something in it helps. As empty divs behaviour are problematic.

This doesn’t appear to be directly associated with the <div> element but instead with the pagination algorithm combined with the ‘text nodes’.

To me wrapping the content in a <p> or <div> would be the way forward.

Will ask our developers to look into your intial setup.

Thanks Erik.

A different note, regarding this post: Dynamic table adds additional header without any detail rows

You coded a work around regarding merge.section.paginate() to remove the extra table generated when called. This issue is tied with this question , with sheet configuration Im trying to achieve. (see my response there if you get a minute).

That will be fixed in the oncoming 2023.2 release (likely to be released mid November 2023)

(Internal ref: SHARED-89405)

Thanks Erik. Awaiting for this release.

As this will open up a lot of number of use cases and custom pagination outside of the native sheet configuration set up.


Hi Erik,

I had response from OL that this is still not fixed in the upcoming release. Can you please confirm?

Thank you

That ticket has indeed been fixed in the upcoming 2023.2 release. It’s possible that Support looked into an early beta release that did not have it yet, which would explain their answer.

Whew, that’s good to know. Thanks for the confirmation Phil. Now definitely looking forward to it.