Snippets
- Learn phpdocx in 5 minutes
- Tutorial
- API quick guide
- HTML to Word
- HTML Extended
- Conversion plugin
- Word to HTML
- DOCXPath
- Bulk processing
- DOCXCustomizer
- Digital signature
- Cryptophpdocx
- Right to left languages
- phpdocx CLI command
- Tracking
- Artificial Intelligence
- Blockchain for documents
- JavaScript API
- Compiled mode
Prevent break tables using addTable
In order to prevent a table to be split in several pages it is required to apply the keepLines and keepNext styles to all of its contents. This code works unless the table occupies more space than a full page.
It is also possible to use custom styles.