使用iText更改PDF Producer属性 [英] Changing PDF Producer property with iText

查看:281
本文介绍了使用iText更改PDF Producer属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用iText更改PDF文档的现有属性?

Is it possible to change an existing property of a PDF document with iText?

我尝试过

Map<String, String> moreInfo = new HashMap<String, String>();
moreInfo.put(Meta.PRODUCER, "XXX");
moreInfo.put(Meta.AUTHOR, "YYY");

try {
    stamp1.setMoreInfo(moreInfo);
}
catch (Throwable t) {
    Log.d(this.getClass().getName(), t.getMessage());
}

我没有任何例外,但也没有任何改变.

I don't get any exception, but also nothing changes.

推荐答案

对于 AGPL,这是不可能的版本的iText.购买许可证将使您能够更改该字段.请参见为什么要购买许可证部分此处.

That's not possible with the AGPL version of iText. Buying a license will enable you to change that field. See the Why buy a license section here.

这篇关于使用iText更改PDF Producer属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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