Page Break in Word Template

I'm using Plumbsail to "Populate a Word Template" through Power Automate.

The template has multiple arrays of data that populate multiple tables of data. I've used page-breaks on the word template to ensure that each table is on it's own page.

In some situations, the user has left an array blank (intentionally), but because of the page breaks, I end up with blank pages. I've tried various methods of trying to embed the page-break into my data table, or having Plumbsail send special characters to dynamically create a page break when I need one... but no luck.

Does anyone know how to do this?

Thanks in advance.

Ryan

Hi @rolivier,

In theory, you can remove some of the template elements using * hide-block-if-nothing formatter. Probably you can add it to the page break area and remove it in case some of the Json elements are empty. The formatter also work with some values, check * hide-block-if.

Otherwise, please share here or at support@plusmail.com your DOCX template sample and the JSON example when some of the arrays are missing. I'll check if we can correct the template to get rid of the blank pages in the result.

Best regards,
Petr
Plumsail team