Forum


Replies: 1   Views: 2195
Keeping section headings with the body of the section
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 driven13  · 18-07-2018 - 18:16

Hello all.

We cannot seem to figure out how to achieve this.

We are trying to pull information from the database to generate PDF documents (CVs and Resumes).

We have most of it done but for one thing.

The CV/Resume is made up of various sections. Each section as a heading and text that goes with it.

Sometimes, the generated PDF leaves the heading at the bottom of the previous page and the body-text shows up in the next page.

In the LibreOffice document the heading and body show up together like they should, but on the PDF version the display is as described above.

Why is this...??

Is there any way to avoid this...???

Thanks in advance.

Posted by admin  · 18-07-2018 - 21:34

Hello,

We recommend you to check if you are using the same version of LibreOffice to generate the PDF and the one that returns the correct output. Maybe you need to upgrade the one used by the conversion plugin.

About keeping contents in the same page, Word includes specific options. For example, if you add text using addText you can use keepLines and keepNext options.

Regards.