Does anyone know of a library that will allow me to write an odt (Open Document Format, i.e. OpenOffice compatible) file from a C program?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 7 years ago.
回答1:
ODT/ODF is basically zipped XML, so any XML library will do. You'll need to know the specification though if you're going to write a new ODT file from scratch. It's much easier to unpack an existing ODT and insert data into contained the content.xml file.
See OASIS OpenDocument Essentials (especially the "The Virtues of Cheating" paragraph)