gert789
gert789

Reputation: 424

generating dynamic docx documents

I'm looking for a way to generate docx-files using PHP.

I've used PHPWord but it's not sufficient for my project. It doesn't have enough elements and the template engine is too basic.

My system has to be capable of:

Are there any good solutions? Is there anyone with experience in this matter?

Thanks!

Upvotes: 5

Views: 6849

Answers (1)

Skrol29
Skrol29

Reputation: 5552

OpenTBS can generate Docx documents in pure PHP, using the technique of templates.

  • nesting tables => YES
  • merging table cells => YES
  • looping templates => I'm not sure what is means, but probably YES
  • combining/nesting templates => You can insert XML sub templates, not DOCX sub-templates. Or you can read other DOCX sub-XML parts, and merge-them into a main DOCX.

Upvotes: 5

Related Questions