【发布时间】:2015-01-13 16:39:59
【问题描述】:
经过几天的工作,我启用了我的 PDF LTV(耶!)。
使用 adobe pdf 阅读器,我现在可以看到第二个修订/签名。据我了解,这是因为 DSS 中的签名时间戳。
正如我在几个网站上所读到的,要使用 DSS 启用 LTV,不需要第二个时间戳。
我正在使用iText whitepaper中描述的addLtv方法
时间戳就是通过这行代码添加的:
LtvTimestamp.timestamp(appearance, tsa, null);
但如果我删除这一行,我的输出 PDF 为空。
如何在没有时间戳 DSS 的情况下创建启用 LTV 的 PDF?
-e-
如果我只是这样做
stamper.close();
reader.close();
我得到这个错误:
com.itextpdf.text.DocumentException: Signature defined. Must be closed in PdfSignatureAppearance.
【问题讨论】:
标签: pdf itext digital-signature