We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Add digital sign in pdf


I am generating pdf document using ASPOSE jdk16-11 from word template, now i have to add digital sign in that pdf , could you send example for this.

vinay p

Hi Vinay,

Thanks for your inquiry. Please use PdfSaveOptions.setDigitalSignatureDetails method to set the details for signing the output PDF document. Please read the detail of PdfDigitalSignatureDetails class from here:

Following code example shows how to digital sign a PDF document. Hope this helps you. Please let us know if you have any more queries.

PdfDigitalSignatureDetails signatureDetails = new PdfDigitalSignatureDetails(MyDir + "cert.p12", "testpdf", "Test
  Signing", "Aspose Office",
  new java.util.Date());

Document doc = new Document();
PdfSaveOptions saveOptions = new PdfSaveOptions();
doc.save(MyDir + "Out.pdf", saveOptions);