2

I would like to write an .odt file programmatically e.g. include figures from a directory or use different style writing code (like a LaTeX document).

I wonder how can I compile an .odt file and if there are any, which is the best python libraries to do that.

G M
  • 343

1 Answers1

2

Writing a library to do this would be considerably harder then your are anticipating.

Instead, convert the .tex file into an intermediary format, such as HTML (or PDF) and then convert it again into .odt using already existing tools.

Source/Example

David
  • 9,854