Forum


Replies: 3   Views: 184
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 - 16:49

Hello,

We recommend you read the documentation available at https://www.phpdocx.com/documentation/cookbook/good-practices-with-templates (Parse mode option section).

As explained on this page, if your DOCX contains the template placeholder symbols as regular contents, we recommend enabling the parseMode option:

$docx = new CreateDocxFromTemplate('template.docx', ['parseMode' => true]);

or use ${ } to wrap placeholders.

Please also send your DOCX to contact[at]phpdocx.com and we'll do some tests.

Regards.