I would like to use OO/LO PDF generation capabilities in my applications. To do it, I need to be able to modify a previously generated odt template from my code. The modification would be simple text replacements only (which do not even require regexes).

[OO's developer's guide](https://wiki.openoffice.org/wiki/Documentation/DevGuide/OpenOffice.org_Developers_Guide) does not contain any examples or tutorials which would allow me to do what I need to do.

Neither is [LO's developer's guide](http://api.libreoffice.org/examples/DevelopersGuide/examples.html) useful. It contains multiple java examples, but no useful C++ code. 

For both APIs a doxygen documentation is available - but there is no general introduction and browsing the entire code base and reverse engineering the classes and discovering how to use them is too tedious and cumbersome.

To sum up: how can I modify odt files using a C or C++ API?