Itext-5.5.3在pdf上应用数字签名时返回长版本名称

时间:2017-06-07 06:27:09

标签: java java-ee itext

从itext抛出的异常堆栈跟踪:

java.lang.IllegalArgumentException: The name 'iText® 5.5.3 ©2000-2014 iText Group NV (AGPL-version) (AGPL-version) (AGPL-version) (AGPL-version) (AGPL-version) (AGPL-version)' is too long (128 characters).
    at com.itextpdf.text.pdf.PdfName.<init>(PdfName.java:2417)
    at com.itextpdf.text.pdf.PdfName.<init>(PdfName.java:2403)
    at com.itextpdf.text.pdf.security.PdfSignatureAppDictionary.setSignatureCreator(PdfSignatureAppDictionary.java:67)
    at com.itextpdf.text.pdf.security.PdfSignatureBuildProperties.setSignatureCreator(PdfSignatureBuildProperties.java:68)
    at com.itextpdf.text.pdf.PdfSignature.setSignatureCreator(PdfSignature.java:102)
    at com.itextpdf.text.pdf.security.MakeSignature.signDetached(MakeSignature.java:133)
    at com.newgen.omni.oms.output.PDFOperations.addDigitalSignature(PDFOperations.java:823)

0 个答案:

没有答案