Forum


Replies: 3   Views: 2149
Keepnext not working when converting to pdf
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by kobbe  · 13-06-2019 - 08:55

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. :)