Michael Chourdakis
Michael Chourdakis

Reputation: 11168

Tcpdf multiple signatures

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.

Upvotes: 5

Views: 3160

Answers (2)

K4M
K4M

Reputation: 952

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.

Upvotes: 2

Hatem
Hatem

Reputation: 200

I was looking for similar solution with tcpdf, it's working fine with one signature. When I try to sign again the document, the old signature is gone and the new signature is added. However the new document keep the old signature image only. So still looking for a way to add more digital signature in one pdf with different image as signature appearance.

Upvotes: 0

Related Questions