Signing documents with digital certificate using php or js

1

I need to develop a code (JS or PHP) where after uploading a PDF file it is automatically signed by a digital certificate model A1 that is already allocated on the server.

    
asked by anonymous 20.01.2015 / 21:43

1 answer

2

The TCPDF library can be used to add the certificate to the PDF.

On their site, you have a complete example of signing up and creating, but how you need to sign an existing PDF I suggest you take a look at the class TCPDF_IMPORT (methods setSignature and setSignatureAppearance ) to import the document and set the certificate.

Another alternative that is not free is SetaPDF- Signer . I've never tested this but it seems to be even simpler to use than TCPDF.

    
20.01.2015 / 22:32