Hi slynch,
We can sign a PDF document using an existing unsigned signature field. Refer to the following code snippet to sign the document with the existing signature field:
PdfLoadedDocument loadedDocument = new PdfLoadedDocument(pdfFile); PdfLoadedPage? page = loadedDocument.Pages[0] as PdfLoadedPage; PdfLoadedSignatureField lSigField = loadedDocument.Form.Fields[0]
as PdfLoadedSignatureField; PdfSignature signature = new PdfSignature(loadedDocument, page!, null,
"Sig1", lSigField); |
Try the above code and let us know if you need further assistance. For additional details, you can refer to our .
Regards,
Irfana J.