Hello,
We’ve tried to sign a PDF file using a custom timestampserver.
When running the code we’ve received the following error:
“class com.aspose.pdf.internal.ms.System.z105: The method or operation is not implemented”
This error code only returns when providing the .setTimestampSettings to a signature.
Does this mean that the method isn’t implemented yet in the .JAVA version?
Here’s our code :
PdfFileSignature pdfSign = new PdfFileSignature();
pdfSign.bindPdf(“pdfToSign.pdf”);
PKCS7Detached signature = new PKCS7Detached(“keyfile.pfx”, “passwordOfKey”);
TimestampSettings timestampSettings = new TimestampSettings(**“https://tsa.safecreative.org/”** , “”);
signature.setTimestampSettings(timestampSettings);
java.awt.Rectangle rect = new java.awt.Rectangle(100, 100, 200, 100);
pdfSign.setSignatureAppearance(“test.png”);
pdfSign.sign(1, “Signature Reason”, “Contact”, “Location”, true, rect, signature);
pdfSign.save(“OUTPUTS\custom_pades.pdf”);
Using Aspose.Pdf 11.5.0
Java version 1.7
Thank you for your time !
Samnang