News

Adding HTML to a docx document using PHPDocX

  • 06/06/2011

If you want to find more detailed info about the different posible ways to add HTML to your Word document, please, refer to the HTML to Word section of our API documentation. If you need to embed som...

Read More

Adding a section to a docx document with PHPDocX

  • 06/06/2011

This information is outdated, please, refer to the addSection documentation for up to date info. Creating a section with PHPdocx is now very easy. You may just use the code below with the obvious m...

Read More

How to include a chart in a Word template with PHPDocX

  • 06/06/2011

You may replace a placeholder variable by a chart within a Word document with the help of the PHPDocX addTemplate variable method. An example follows where the placeholder variable 'PIECHART' is rep...

Read More

Getting the PHPDocX template variables from a Word template

  • 06/06/2011

When using a Word template in PHPDocX you may need at certain point to get a list of all its placeholder variables. You can recover, with the help of the getTemplateVariables method, all template va...

Read More

Replacing variables in a PHPdocx Template

  • 06/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