简体   繁体   English

pdfBox:如何从签名字段中获取签名名称

[英]pdfBox: how to get signing name from signature field

Using itext I can get the signing name (Signed By) like this:使用 itext 我可以获得这样的签名名称(Signed By):

fields = reader.getAcroFields();

pk = fields.verifySignature(FieldName);

name = pk.getSignName();

How do I get the signing name using pdfBox?如何使用 pdfBox 获取签名名称?

document.getSignatureDictionaries() gets the signatures, and PDSignature.getName() gets the name. document.getSignatureDictionaries()获取签名,而PDSignature.getName()获取名称。 To see more, have a look at the ShowSignature.java example from the source code download in the examples subproject.要查看更多信息,请查看示例子项目中源代码下载中的ShowSignature.java示例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM