Forum


Replies: 1   Views: 34
Keep text together across pages breaks in transformed pdf

Posted by jwphp  · 10-11-2025 - 18:43

When transforming a DOCX to PDF with TransformDocAdvPDF is there any way to keep paragraphs, word fragments or table rows together across page breaks? This is possible with keepNext when generating a DOCX but it seems to lose this ability when converted to a PDF. Is there any workaround that will provide some way of keeping text together across page breaks in a PDF?

I am using phpdocx 16 Premium.

Posted by admin  · 10-11-2025 - 19:03

Hello,

Your phpdocx account doesn't have a license. Please send to contact[at]phpdocx.com the username or email address that owns the license you are using.

Regarding your question, the current stable version of the native conversion plugin doesn't support "keep next" styles. On https://www.phpdocx.com/documentation/conversion-plugin/preparing-the-templates-for-its-conversion (Supported OOXML tags and attributes when using the native method section), you can read the supported content and styles. In this case, we recommend you use the conversion plugin based on LibreOffice or MS Word.

Regards.