Forum


Replies: 7   Views: 2596
Replcevariablebyhtml is not available
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  · 27-11-2018 - 14:47

Hello,

You need to install and enable the Tidy extension for PHP. And also check you are writing the method name correctly.

The Tidy requirement is explained in the check.php output:

Warning You must install Tidy for PHP if you want to useembedHTMLin your Word documents.

And on the doc pages of the method:

https://www.phpdocx.com/documentation/introduction/html-to-word-PHP

https://www.phpdocx.com/documentation/cookbook/convert-html-to-word

https://www.phpdocx.com/api-documentation/templates/replace-variable-html-Word-document

As you are using the trial package, please check the documentation and the included samples.

Regards.