Forum


Replies: 5   Views: 444
How to insert a page break after every cloned blocked
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 admin  · 06-09-2023 - 16:24

Hello,

Yes, please check the API documentation page of the method (https://www.phpdocx.com/api-documentation/docx-path/clone-blocks-in-docx). The method includes the following option:

type      string  Possible values are: inline (default) or block. Used by WordFragment values.

to set the replacement type when adding WordFragments:

$docx->cloneBlock('FINDINGS', 1, $variables, array('removeBlockPlaceholder' => true, 'type' => 'block'));

Regards.