News

Replacing variables in a PHPdocx Template

  • Jun 06, 2011

You can create Word templates with placeholder variables that will be replace later by PHPDocX with real data. For example, you can use the addTemplateVariable method as follows to replace variables...

Read More

Multiple columns layout with PHPdocx

  • Jun 06, 2011

This information is outdated, please, refer to the modifyPageLayout method documentation for up to date info. Do you need to create a Word document with more than a single column per page? You can...

Read More

Adding HTML to a template variable in PHPDocX

  • Jun 06, 2011

Like add the contents of a docx document, you can add HTML in a variable of a template. You don't need to call a document, ut ad this HTML manually or using other import functions. Here is the code:...

Read More

Inserting a RFT document into your Word template

  • Jun 06, 2011

You may replace a single Word template variable by a full RTF document with the help of the addTemplateVariable method: require_once '../../classes/CreateDocx.inc'; $docx = new CreateDoc...

Read More

Creating and adding info to a template table in PHPdocx

  • Jun 06, 2011

If you have a template with a table, you can pass parameteres and info to it. For the code, use a template like this: Use this code: require_once '../../classes/CreateDocx.inc'; $doc...

Read More