News

Create a link in a docx document with PHPdocx

  • May 03, 2011

This information is outdated, please, refer to the addLink documentation for up to date info.
Docx document permits, as his predecessors, include links: this is really usefull and add a link is really easy using addLink: here is the code to do that:


require_once '../../classes/CreateDocx.inc';

$docx = new CreateDocx();

$docx->addLink('Link to Google', 'http://www.google.es', 'Arial');

$docx->createDocx('example_link');