OpenTBS is a PHP tool that helps you to make OpenOffice and MS Office documents using templates. You first design your template using OpenOffice or MS Office, and then OpenTBS merges it with data that you supply from PHP code and databases. It has facilities to manage pictures. The resulting documents are saved to file, served for download, or returned as a string. In fact, OpenTBS can merge any OpenDocument files, any OpenXML files, and any XML files compressed in a Zip archive. No extra exe file is required and it makes no temporary files, since all work is done in memory. OpenTBS is based on the TinyButStrong template engine.

lpOD (languages & platforms OpenDocument)
is a project that offers, for high level use cases, an application programming interface dedicated to document processing with the Python, Perl, and Ruby languages. It complies with the Open Document Format standard.

The Apache ODF Toolkit is a set of Java modules that allow programmatic creation, scanning, and manipulation of Open Document Format (ISO/IEC 26300 == ODF) documents. Unlike other approaches that rely on runtime manipulation of heavy-weight editors via an automation interface, the ODF Toolkit is lightweight and ideal for server use.