Add Digital signature with custom properties

Hello Team,

How to add digital signature in PDF document with custom properties like Title and Department in the digital signature.

We have SignatureCustomAppearance class which will allow to add Location and Reason, but it is not having the properties like Title and Department in the digital signature.

Please share sample code as soon as possible,which will have how to add title and department in digital signature for a pdf document.

we are using following code for digital signature

using (Aspose.Pdf.Facades.PdfFileSignature pdfSign = new Aspose.Pdf.Facades.PdfFileSignature())
{
pdfSign.BindPdf(inFile);
//create a rectangle for signature location
System.Drawing.Rectangle rect = new System.Drawing.Rectangle(310, 45, 200, 50);

//create any of the three signature types
PKCS7 pkcs = new PKCS7(inPfxFile, "12345");
pkcs.Reason = "Pruebas Firma";
pkcs.ContactInfo = "Contacto Pruebas";
pkcs.Location = "Población (Provincia)";
pkcs.Date = DateTime.Now;
SignatureCustomAppearance signatureCustomAppearance = new SignatureCustomAppearance();
signatureCustomAppearance.DateSignedAtLabel = "Fecha";
signatureCustomAppearance.DigitalSignedLabel = "Digitalmente firmado por";
signatureCustomAppearance.ReasonLabel = "Razón";
signatureCustomAppearance.LocationLabel = "Localización";
signatureCustomAppearance.FontFamilyName = "Arial";
signatureCustomAppearance.FontSize = 10d;
signatureCustomAppearance.Culture = CultureInfo.InvariantCulture;
signatureCustomAppearance.DateTimeFormat = "yyyy.MM.dd HH:mm:ss";
pkcs.CustomAppearance = signatureCustomAppearance;
// sign the PDF file
pdfSign.Sign(1, true, rect, pkcs);
//save output PDF file
pdfSign.Save(outFile);

@kranthireddyr

Would you kindly share a sample image of signature which is your desired output. Also, it would be helpful if you can share a sample input PDF and Certificate (.pfx) file for our reference. We will further look into the scenario and share our feedback with you.