I am using keepNext on headlines. I see it works correctly in word. But when using transformDocument to PDF the headline is still at the bottom of page. Is there a way to fix this?
I am using libreoffice as method.
Also from documenation:
https://www.phpdocx.com/api-documentation/word-content/insert-heading-Word-document-with-PHP
keepNext bool Keeps (whenever possible) in the same page the current paragraph with next paragraph (default value is false).
But it looks like addHeading has default value "on"... so it is not Bool? And Default value is wrong. Please update docs. :)