I have a document that is digitally signed, and when creating a new document from the first, it loses the signature, here I show the code:
String src = "C:\\sign\\testpdf\\signed_document.pdf";
String dest = "C:\\sign\\testpdf\\modified_document.pdf";
PdfReader pdfReader = new PdfReader(src);
PdfWriter pdfWritter = new PdfWriter(dest);
PdfDocument pdf2 = new PdfDocument(pdfReader, pdfWritter);
pdf2.close();
Is there a way to keep the new document signed? thanks!
EDIT: The signature appears on the new document but as "unknown". That is,the name of the person who signed does not appear