Forum


Replies: 2   Views: 2341
Import external stylesheet file
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 jhanley  · 04-11-2019 - 22:59

Right, I'm already prepending a string containing inline style classes. Example:

$style = "<style>
p, span[style] {
  font-family: Arial;
  font-size: 7.5pt;
}
</style>";

I just thought phpdocx might provide a method for loading external stylesheets.

That said, I will simply roll my own solution for loading an external text file. Thanks.