News

PHPDocX - the basics

  • 05/03/2011

If you are new to PHPDocX, there are some things that never change when you create a .php document that will generate a .docx document. There are the basics that you should never forget. you always...

Read More

Images on templates with PHPDocX

  • 05/03/2011

Learn to change a picture or photo in a template with PHPdocx. In this example we show you how simple it is with PHPDocX to include photos in a document template at “run time”. One may need to sho...

Read More

How to mark a document as final in PHPdocx

  • 05/03/2011

If you need to mark a document as final, simply add one extra line at your code to mark it ($docx->setMarkAsFinal();) This is an example of how to do it. require_once '../../classes/CreateDoc...

Read More

Headers and Footers in PHPdocx

  • 05/03/2011

Oftentimes it is necessary to put vital information about your document either at the top of the page, at the bottom of the page, or a combination of both. While you can easily enter things such as do...

Read More

Working with templates: inserting multiline text with PHPDocX

  • 05/03/2011

Time to play with templates! PhPDocX allows to modify an existing Word template. You may create a working template by copying and pasting the following text in a docx document: You may, for...

Read More