将数字签名(Base64 编码)集成到 pdf 文件中
Integrate digital signature (Base64-encoded) into pdf file
我正在使用 NakovDocumentSigner API 来签署 pdf 文件。
一旦 pdf 文件被签名,我得到一个数字签名(Base64 编码)和一个认证链(Base64 编码),我想将其转换为包含可视数字签名的 pdf 文档?
如评论中所述,OP 采用原始 PDF,在某处为其创建签名,现在希望以某种方式将签名集成到 PDF 中。
这很不幸,因为集成的 PDF 签名不是这样工作的。要了解它们的工作原理,请阅读有关信息安全的 this answer。简短版本:
you have to build a new revision of the PDF document which includes a PDF AcroForm signature field whose value is a signature dictionary whose Contents entry contains the signature of the whole new revision with the exception of the Contents entry value.
这应该说明为什么不能在此处使用原始 PDF 的签名。
Bruno Lowagie(iText 软件)在您标记问题时 itext, you should then read Digital Signatures for PDF documents,这是一份解释如何使用 iText 创建集成 PDF 签名的白皮书。
有了这些知识,您就可以检查 NakovDocumentSigner API 是否可用于创建集成的 PDF 签名。
我正在使用 NakovDocumentSigner API 来签署 pdf 文件。 一旦 pdf 文件被签名,我得到一个数字签名(Base64 编码)和一个认证链(Base64 编码),我想将其转换为包含可视数字签名的 pdf 文档?
如评论中所述,OP 采用原始 PDF,在某处为其创建签名,现在希望以某种方式将签名集成到 PDF 中。
这很不幸,因为集成的 PDF 签名不是这样工作的。要了解它们的工作原理,请阅读有关信息安全的 this answer。简短版本:
you have to build a new revision of the PDF document which includes a PDF AcroForm signature field whose value is a signature dictionary whose Contents entry contains the signature of the whole new revision with the exception of the Contents entry value.
这应该说明为什么不能在此处使用原始 PDF 的签名。
Bruno Lowagie(iText 软件)在您标记问题时 itext, you should then read Digital Signatures for PDF documents,这是一份解释如何使用 iText 创建集成 PDF 签名的白皮书。
有了这些知识,您就可以检查 NakovDocumentSigner API 是否可用于创建集成的 PDF 签名。