Forum


Replies: 5   Views: 4956
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 - 09:20

I tried giving :

$docx->importStyles('http://www.csszengarden.com/215/215.css?v=8may2013', 'merge', array('crazyStyle'));

but I get this when running it in CLI :

FATAL - Error while opening the Style Template: please, check the path

Fatal error: Uncaught exception 'Exception' with message 'Error while opening the Style Template: please, check the path' in /home/username/webapps/domain/phpdocx-trial-pro-5.5/classes/AutoLoader.inc(62) : eval()'d code:55
Stack trace:
#0 /home/username/webapps/domain/phpdocx-trial-pro-5.5/classes/CreateDocx.inc(4013): PhpdocxLogger::logger('Error while ope...', 'fatal')
#1 /home/username/webapps/domain/create-docx-test.php(10): CreateDocx->importStyles('http://www.cssz...', 'merge', Array)
#2 {main}
  thrown in /home/username/webapps/domain/phpdocx-trial-pro-5.5/classes/AutoLoader.inc(62) : eval()'d code on line 55