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

我试过了

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());
}

我没有任何例外,但也没有任何变化。

最佳答案

使用iText的AGPL版本是不可能的。购买许可证将使您能够更改该字段。请参阅“为什么购买许可证”部分here

10-01 22:23