itextsharp 如何识别我有缩写框

itextsharp how to recognize that i have initials box

我有一个包含 3 个可编辑字段的文件,2 个用于数字签名,1 个用于缩写。

如何找到哪个是Initial Box?该方法 GetBlankSignatureNames return 3 个具有相同值的字段,除了名称和位置。看不到我可以用来查找 Initials Box

的任何其他差异或 属性

pdf 规范未明确提及将签名字段标记为“仅限首字母”的任何方式。

不过,它提供了一种方法,将此信号发送给特定的 pdf 处理器(例如 Adob​​e Reader),签名种子值 AppearanceFilter:

AppearanceFilter text string (Optional; PDF 2.0) A text string naming the appearance that shall be used when signing the signature field. interactive PDF processors may choose to maintain a list of named signature appearances. This text string provides authors with a means of specifying which appearance should be used to sign the signature field.

If the required bit AppearanceFilter in Ff is set, the appearance shall be available to sign the document and is used.

此值可用于指示给定字段应使用看起来像首字母的外观进行签名。

所以你说你得到的三个字段具有 相同的值,除了名称和位置,但你确实深入研究了种子值并进行了比较吗?

除此之外,您还可以应用启发式方法,您可以检查在 名称和位置 中发现的差异是否提供了提示,例如包含“initial”作为子字符串的字段名称或特别小的位置...