Register Lost your password?
Full api documentation: full api documentation FREE version full api documentation PRO version

public function addTemplateImage(string variable, string imagePath)

Parameters

variable : variable to replace with image
imagePath : path of the new image

Variables in Word document must be added with Word.

Examples

Example Version Pro


require_once 'classes/CreateDocx.inc';

$objDocx = new CreateDocx();

$objDocx->addTemplate('TemplateImage.docx');

$objDocx->addTemplateImage('IMAGE', 'logo_phpdocx.gif');

$objDocx->createDocx('template_image.docx');

Comments are closed.