Forum


Replies: 11   Views: 2145
Setting margins with drupal plugin
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  · 22-05-2019 - 10:54

Hello,

We recommend you to change the Drupal 8 plugin. In plugins/drupal-8/node-to-docx/src/NodetoDocxHandler.php you can find the following method:

private function generateDocxFromHtml($html, $file_name_output) {

In this method, instead of:

$docx = new \Phpdocx\Create\CreateDocx();
$docx->embedHTML($html);

You can use:

$docx = new \Phpdocx\Create\CreateDocx();
$docx->embedHTML($html, array('useHTMLExtended' => true));

to enable using HTML Extended.

Regards.