Youssef El Rhailani
Youssef El Rhailani

Reputation: 319

Integrate digital signature (Base64-encoded) into pdf file

I'm using NakovDocumentSigner API to sign pdf files. Once the pdf file is signed, I got a Digital signature (Base64-encoded) and a Certification chain (Base64-encoded), I want to convert that to a pdf document containing a visual digital signature ?

Upvotes: 2

Views: 3173

Answers (1)

mkl
mkl

Reputation: 95888

As became clear in comments, the OP takes the original PDF, somewhere create a signature for it, and now hopes to somehow integrate the signature into the PDF.

This is unfortunate because it is not how integrated PDF signatures work. To get an impression how they works, please read this answer on Information Security. The short version:

you have to build a new revision of the PDF document which includes a PDF AcroForm signature field whose value is a signature dictionary whose Contents entry contains the signature of the whole new revision with the exception of the Contents entry value.

sketch

This should show why a signature of the original PDF cannot be used here.

As you tagged your question , you should then read Digital Signatures for PDF documents by Bruno Lowagie (iText Software), a whitepaper explaining how to use iText for creating integrated PDF signatures.

With that knowledge you then can check whether or not the NakovDocumentSigner API can be used for creating integrated PDF signatures.

Upvotes: 1

Related Questions