TCPDF多重签名 [英] Tcpdf multiple signatures

查看:245
本文介绍了TCPDF多重签名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用tcpdf生成PDF文件。到目前为止,一切正常。



我知道它只能有一个数字签名,并且必须在创建时创建。



但是,我有一些必须由多人签名的PDF,不能同时签名。当每个成员决定对文本签名时,我的应用程序可以生成不同的PCKS#7签名。



有没有一种方法可以通过某些原始插入函数添加这些多个签名?我不需要tcpdf来生成签名,只需将其放入文件中即可。



最诚挚的问候。

解决方案

更新


setSignature()似乎具有用于批准和文档表明,该更新用于增量更新。批准签名的值可以为'A'

  @param $ approval(字符串)启用批准签名,例如对于PDF增量更新

有关此问题的详细信息,请参见我的答案:
PDF多个数字符号


原始版本 >


您使用的库应支持增量更新,该更新允许在不修改先前已签名的原始文档的情况下添加新部分。 / p>

TCPDF不支持增量更新。


> https://sourceforge.net/p/tcpdf/discussion/435311/thread/8cf24d19/


如果您要去通过应用进行签名验证,并显示文档签名有效,那么您可以将签名二进制数据保存到隐藏的对象中,但签名和验证将无法在Acrobat Reader中进行,


总而言之,寻找一个支持增量更新并因此具有多个签名的PDF生成器。


I am generating PDF files with tcpdf. So far, everything is ok.

I understand that it can only have one digital signature and it has to be created at creation time.

However I have some PDFs that have to be signed from multiple people and, not simultaneously. My app can generate different PCKS#7 signatures when each member decides to sign the text.

Is there a method by which I can add those multiple signatures by some raw insertion function? I do not need tcpdf to generate the signature, just put it to the file.

Best regards.

解决方案

UPDATE

setSignature() seems to have parameter for approvals and the documentation suggests that's for incremental update. The value can be 'A' for approval signatures.

@param $approval (string) Enable approval signature eg. for PDF incremental update

See my answer on this question for more details: PDF Multiple Digital sign

ORIGINAL VERSION

The library you use should support incremental update, which allows appending new section without modifying the original document that's been signed previously.

TCPDF does not support incremental update.

https://sourceforge.net/p/tcpdf/discussion/435311/thread/8cf24d19/

If you are going to do the signature verification through your app,and show that the document signature is valid, then you can do that saving the signature binary data into a hidden object but the signing and validation will not work inside Acrobat reader, just in your app.

In summary, look for a PDF generator that supports incremental update and thus multiple- signatures.

这篇关于TCPDF多重签名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆