I'm currently working with a customer to implement pdf document resigning using Aspose.PDF for .NET.Currently the only facility that I see Aspose.PDF supporting in this vien is a call to completely obliterate a signature field with a given field name (PdfFileSignature.RemoveSignature ( System.String)). This does not help as we want to re-sign the document in the same location with a signature field of the same name.
There are two paths I can see that would support this need.
The first path would be to have an Aspose.PDF interface that simply removes the signature data from the existing signature field and open that existing field back up for resigning.
The other path would be to have an Aspose.PDF interface that would return the rectangle of a signature field when given the signature field name. This would enable the user to delete the old signature field and then add a new field of the same dimensions back into the document at the same location with the same name as the field that was deleted.
The later approach could be used internally to implement the first approach.
Hi,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
Thank you for the details.
Please use SignatureField class of Aspose.Pdf
DOM to get the Signature Field from your existing PDF document and replace it.
You may check the following sample code regarding how to get the Signature
Field using Aspose.Pdf DOM. You can use SignatureField.Signature
property to get the signature and SignatureField.Rect property to get the
position of the signature in the file.
//open
document
Aspose.Pdf.Document pdfDocument = new
Aspose.Pdf.Document("input.pdf");
//open
document
Aspose.Pdf.Document pdfDocument = new
Aspose.Pdf.Document("input.pdf");
How would someone go about getting the page number assocaited with the signature field?
Hi,
I am afraid the requested feature is currently not
supported but for the sake of implementation, I have logged this requirement in
our issue tracking system under New Features list as PDFNEWNET-34519. We will further investigate this requirement in
details and will keep you updated on the status of a correction. <o:p></o:p>
Please try using Field.PageIndex property to get page number information (this property is not signature-specific and is applicable for field of any type)
[C#]
//document 34519 contains signature
named “Signature1”<o:p></o:p>