Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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:

  • nesting tables
  • merging table cells
  • looping templates
  • combining/nesting templates

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

Thanks!

like image 220
gert789 Avatar asked Aug 22 '12 09:08

gert789


1 Answers

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.
like image 139
Skrol29 Avatar answered Oct 19 '22 10:10

Skrol29