gpt4 book ai didi

用于编辑文档属性的 Java 库

转载 作者:行者123 更新时间:2023-11-30 09:41:06 25 4
gpt4 key购买 nike

我想编写一个 java 程序来编辑 doc 文件的元数据作者、标题、主题等。请告诉我图书馆这样做...

最佳答案

看看Apache POI - the Java API for Microsoft Documents

Apache POI provides text extraction for all the supported file formats. In addition, it provides access to the metadata associated with a given file, such as title and author.

看看getDocSummaryInformation()它返回,

Returns the document information metadata for the document

同时看看这个 nice example .(见其评论部分)

关于用于编辑文档属性的 Java 库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9108073/

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