I'm working with the Chilkat library in my project, and I need to sign specific pages of a PDF based on a list of page numbers. Can someone provide a code example or guidance on how to achieve this?
Put signature based on page number list
I'm working with the Chilkat library in my project, and I need to sign specific pages of a PDF based on a list of page numbers. Can someone provide a code example or guidance on how to achieve this?
Put signature based on page number list
A cryptographic signature would sign the entire PDF document. Signing individual pages doesn't really make sense.
When a PDF is signed, a byte range of the PDF is digested, and the digest is signed. Typically, the byte range is in 2 parts -- the the span before the space allocated for the signature, and the span following the signature to the end of the PDF document.
The PDF format is such that it is composed of objects, and those objects are interspersed throughout the document. They can be versioned. The objects can be encapsulated into compressed stream objects. Therefore, the things that make up a page can be scattered around in a PDF. I can't even imagine what it means to "sign a page". What byte ranges within the PDF represent the page? It's impossible to really define. Also PDF objects contained in one page can be contained in others.
Anyway, it makes no sense to "sign a page".
Perhaps you are wanting a visual indication on each page that the overall PDF is signed. But that is something different..