Forum


Replies: 3   Views: 3143
Put html in the header
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 fortech  · 25-07-2011 - 15:25

Is there a way to put HTML into the header?

$header = "<table><tr><td>
company name
</td><td>
address
</td><td>
Phone<br />
Fax
</td><td>
000<br />
5000
</td></tr></table>";
$template = "<b>address ... {content} ... sign</b>";



$docx = new CreateDocx();

$docx->addHeader($header);
$docx->addHTML($template);

$docx->createDocx('example_footer');