sandrods / odf-report

Generates ODF files, given a template (.odt) and data, replacing tags

Home Page:http://sandrods.github.com/odf-report

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Improve Open (Microsoft) Office compatability

nathansamson opened this issue · comments

Our use-case is creating templates from DOCX files and convert them to PDF. (We do not want to ask our customers to install Libreoffice and/or save their templates as ODT from withing Office).

To achieve this we have the following pipeline:
A) Convert DOCX to ODT with Libreoffice (server side)
B) Template ODT with odf-report (server side)
C) Convert resulting ODT to PDF, again with Libreoffice on the server side.

The problem is that DOCX (and/or Microsoft office) does not support naming tables or images.
To circumvent this problem we added support for replacing images / tables when their is a bookmark around/inside them.

We have proof of concept code here: https://github.com/nathansamson/odf-report

I am willing to prepare a clean merge request for this, if the maintainer(s) of this project are willing to consider this.

Closing, since you seem to have evolved quite a long way in your fork.