Forum


Replies: 4   Views: 3313
Error replacing image header
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  · 13-07-2016 - 05:50

Hello,

Replacing WordFragment in headers feature was added in phpdocx 4.5, so it's not available in phpdocx 4.1, we recommend you to upgrade to the latest version available.

In your code, the whole paragraph is being replaced because you have added:

'type' => 'block'

this is block replacement. You need to use inline replacement or remove this line.

Regards.