How prevent tables overlapping using cloneBlock in PHPWord/TemplateProcessor?

  laravel, php, phpword

I’m using PHPWord to clone tables in my template, but when I use cloneBlock some tables overlap each other.

I found pageBreak using xml but I need to do that automatic:

$templateWord->setValue('pageBreak', '</w:t></w:r><w:r><w:br w:type="page"/></w:r><w:r><w:t>', 1);

I want to automatic page break that tables, is that posible?

Source: Ask PHP

LEAVE A COMMENT