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.
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.
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.