Hi,
How could I modify my PHP code to add a page break after every cloned block to ensure every block is on a new page. My PHP code is as follows:
$variables = array(
array(
'1' => 'Test 1',
'2' => 'John Doe',
'3' => '2',
'4' => '11/08/2021',
),
array(
'1' => 'Test 2',
'2' => 'John Doe',
'3' => '2',
'4' => '11/08/2021',
),
);
// clone block setting the variables to be replaced
$docx->cloneBlock('FINDINGS', 1, $variables, array('removeBlockPlaceholder' => true));
// delete remaining block
$docx->deleteTemplateBlock('FINDINGS');