使用java以编程方式保护word文档 [英] Protect a word document programmatically using java

查看:84
本文介绍了使用java以编程方式保护word文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 java 代码从模板 XML 文档创建一个 word 2003 文档.我需要在文档创建后对其进行保护(设为只读).文档中有一些字段是可编辑的(即开发者模式的文本表单字段),在创建文档后可以进行编辑.这个可以用java来实现吗?

I am creating a word 2003 document from a template XML document using a java code. I need to protect (make read-only) the document after it has been created. The document has some fields as editable (i.e. text form fields of the developer mode) in it, which can be editable after the document is created. Can this be achieved using java?

推荐答案

看看 Apache poi.这是一个处理office文档的java库.

Have a look at Apache poi. This is a java library for manipulating office document.

这篇关于使用java以编程方式保护word文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆