Forum


Replies: 3   Views: 158
Space characters removed in createdocxfromtemplate process...
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  · 04-12-2024 - 17:23

Hello,

Enabling the parseMode option is recommended when the symbols to wrap placeholders are not ${ } or use multiple characters (symbols) that are included in the template as regular content.
MS Word can break words in several tags, so phpdocx needs to repair them to handle placeholder replacements correctly.

If you don't enable the parseMode option, the whole XML content is parsed at once to clean placeholders. The parseMode option parses and analyzes paragraphs individually to get the placeholders.

Regards.