gpt4 book ai didi

c++ - .odt 格式库

转载 作者:太空宇宙 更新时间:2023-11-04 03:00:49 24 4
gpt4 key购买 nike

是否有可用的 C/C++ 库可用于创建、加载和保存 .odt 格式的文件?

或者,我在哪里可以找到有关实现 .odt(/ODF) 规范的类似教程的信息?

最佳答案

本站:OASIS OpenDocument Essentials似乎涵盖了问题,包括 howto-examples 和快捷方式。
它做得很好并且易于遵循。

Flexibility can be perceived as complexity. If you don't need the flexibility, create a template ODT and just fill in the content as needed. As mentioned, there exist XML parsers to actually handle IO. ODT isn't a plaintext file, so some complexity/difficulty is expected. – Ioan

来自链接:

The Virtues of Cheating

As you begin to work with OpenDocument files, you may want to write a program that constructs a document with some feature that isn’t explained in this book—this is, after all, an “essentials” book. Just start OpenOffice.org or KOffice, create a document that has the feature you want, unpack the file, and look for the XML that implements it. To get a better understanding of how things works, change the XML, repack the document, and reload it. Once you know how a feature works, don’t hesitate to copy and paste the XML from the OpenDocument file into your program. In other words, cheat. It worked for me when I was writing this book, and it can work for you too!

关于c++ - .odt 格式库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12349604/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com