Forum


Replies: 5   Views: 501
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 fiwoyax200  · 06-09-2023 - 14:55

Excellent, thanks for your response.

I have chosen to use the ' Add the page break in the DOCX template manually' method which works perfectly.

A slightly different issue I am having is that when I clone the block some of the values to replace the placeholders will contain HTML code which is displayed as plaintext rather than the formatting and styling.

How could I get the Word Document to display the formatting and styling of the HTML?

 

$variables = array(
    array(
        '1' => '<b>Test 1<b>',
        '2' => '<u>John Doe</u>',
        '3' => '2',
        '4' => '11/08/2021',

    ),
    array(
        '1' => '<b>Test 2<b>',
        '2' => '<u>John Doe</u>',
        '3' => '2',
        '4' => '11/08/2021',
    ),
);