Forum


Replies: 3   Views: 3091
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');

Posted by admin  · 11-04-2013 - 12:13

Hi,

Now you can add text and images, but no HTML or links, etc, but could be a possible implementation in the future.

Regards.

Posted by fortech  · 11-04-2013 - 12:13

Thanks,