How to insert page breaks when creating docx with pandoc and php?

I’ve searched several posts here, but none of the solutions worked. Or I’m doing something wrong somewhere else lol.

I’m creating a report in docx (originally, an html) with Pandoc (currently I’m using version 3.2 on the server), but the page breaks don’t work at all.

I’ve already tested the following:

A docx template with a paragraph formatting called “break”, where I use in the html sent as <p class="break"></p>

<div style="page-break-after:always"></div> or <div style="page-break-before:always"></div>

<w:softHyphen/> or <w:p><w:r><w:br w:type="page"/></w:r></w:p>

I’ve even tested PHPWord and other libraries, but when they accept html they don’t accept style, or vice versa, or they don’t accept both.

Does anyone have an idea of what can I look into?