Tag: pades

如何使用iText添加PAdES-LTV

我试图在没有LTV格式的已签名PDF文档中启用LTV。 我在所有情况下都找到了相同的示例,如链接中所述如何为时间戳签名启用LTV , 启用iText LTV – 如何添加更多CRL? ,它定义了获得预期结果的程序。 碰巧我不工作,它没有给我任何错误,但我没有添加LTV。 一些想法为什么在执行以下代码时没有给我任何错误但是我不添加LTV。 这是我尝试添加LTV的方法: public void addLtv(String src, String dest, OcspClient ocsp, CrlClient crl, TSAClient tsa) throws IOException, DocumentException, GeneralSecurityException { PdfReader r = new PdfReader(src); FileOutputStream fos = new FileOutputStream(dest); PdfStamper stp = PdfStamper.createSignature(r, fos, ‘\0’, null, true); LtvVerification v = stp.getLtvVerification(); AcroFields fields = stp.getAcroFields(); List […]