Example code is in the doctest in Transformer.py and there are now command-line utilities ooo_cat (for concatenating OOo documents), ooo_fieldreplace and ooo_mailmerge which you may also want to study.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have been trying to deduce how to do a mail merge with little success. Can someone provide simple, example code to show how this is done?
In the original document are the replacement areas fields or text placeholders?
Example code is in the doctest in Transformer.py and there are now command-line utilities ooo_cat (for concatenating OOo documents), ooo_fieldreplace and ooo_mailmerge which you may also want to study.