Reputation: 1277
I need to edit LibreOffice Calc document programmatically in C++. I know that there is odfkit
library, which uses webodf
, but it looks like it doesn't support editing .ods files.
Is there any alternative that can deliver me this feature?
Upvotes: 2
Views: 4183
Reputation: 76346
Libreoffice has API, called UNO, for controlling it from another process. So if you need something more complicated, that would be the simplest route.
If you just need some simple transformation, the other option is to unpack the file with plain old zip library (libzip, libarchive, ...) and modify the XML manually.
The opendocument site also mentions lpOD, but the web seems defunct and while search comes up with something that looks relevant, I am not sure whether there is anything usable.
Upvotes: 3