简体   繁体   English

如何在 Android 中编辑 MS Word 文档文件属性?

[英]How to edit MS Word document file properties in Android?

How can I edit Microsoft Word document file properties?如何编辑 Microsoft Word 文档文件属性? (eg Title, Author, Subject, etc.) (例如标题、作者、主题等)

Bharat you should try Apache POI library. Bharat 你应该试试Apache POI库。
This library supports to read, write and get the properties of all Microsoft Office Documents like doc,ppt and xls files.该库支持读取、写入和获取所有 Microsoft Office 文档(如 doc、ppt 和 xls 文件)的属性。
Here is an example how use it. 是一个如何使用它的示例。 Hope it helps.希望能帮助到你。

If you mean the new.docx format of Office >= 2007, you can do this by:如果您的意思是 Office >= 2007 的 new.docx 格式,您可以通过以下方式执行此操作:

  1. Rename.docx to.zip将.docx 重命名为.zip
  2. Unpack the.zip file解压.zip文件
  3. Find the.xml file with the property definitions找到带有属性定义的 .xml 文件
  4. Change them改变它们
  5. Pack and rename the files again再次打包并重命名文件

Check this out看看这个

** Disclosure: I manage the docx4j project ** ** 披露:我管理 docx4j 项目 **

If you mean docx, you could try docx4j, which runs on Android .如果您的意思是 docx,您可以尝试 在 Android 上运行的docx4j。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM