Forum


Replies: 5   Views: 4719
Creating docx from html with external css
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 anjanesh  · 16-02-2016 - 07:35

Is it possible to convert HTML with external CSS to DOCX ?

<?php
require_once 'phpdocx-trial-pro-5.5/classes/CreateDocx.inc';
$docx = new CreateDocx();
$html='http://www.csszengarden.com/215/';
$docx->embedHTML($html, array('isFile' => true));
$docx->createDocx('csszengarden-215');
?>

The external CSS would be http://www.csszengarden.com/215/215.css?v=8may2013

Thanks