【问题标题】:Verification error on adobe using pdftron sample使用 pdftron 示例在 adobe 上验证错误
【发布时间】:2020-03-31 21:04:43
【问题描述】:

如果您运行 node-js 库中的 PDFTron 数字签名示例。您将获得一个可在 FoxIT Reader 上运行以进行验证的示例文档,但会在 Adob​​e 上引发错误。这就是 Adob​​e 给我的。它也不允许我在 Adob​​e 阅读器中验证该问题。这是默认的认证示例,我们正在寻找一种解决方法,以使其与大多数主要的 PDF 阅读器一起工作,而不仅仅是 foxit。有什么线索吗?

Error during signature verification.  

The format of this signature is not supported by this signature method. You may require a newer version of the signature handler.

这是示例代码:https://www.pdftron.com/documentation/nodejs/guides/features/signature/certify-pdf/

【问题讨论】:

    标签: pdftron


    【解决方案1】:

    感谢您让我们知道这件事。我相信您遇到了该示例中的错字。

    请更改以下行

    sigDict.putName('SubFilter', 'adbe.pkcs7,detached');
    

    sigDict.putName('SubFilter', 'adbe.pkcs7.detached');
    

    注意逗号应该是单词detached之前的句点。

    错字很快就会改正。

    另外,请注意我们的 NodeJS API 即将推出新的 API。这是该样本很快的样子。 https://www.pdftron.com/documentation/linux/guides/features/signature/certify-pdf

    【讨论】:

    • 这对我们有用,谢谢!我在 API 文档中唯一建议的另一件事是能够向证书添加日期。我们在这里使用这一行 sigDict.PutString("M", "D:20130417092950-07'00'");但是很难从示例和文档中找到如何做到这一点。
    猜你喜欢
    • 1970-01-01
    • 2020-08-18
    • 1970-01-01
    • 2018-01-18
    • 1970-01-01
    • 2015-12-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多