Custom Timestampserver not working

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

Hi Samnang,


Thanks for your inquiry. I have tested the scenario with Aspose.Pdf for Java 11.5.0 and noticed the reported issue, so logged a ticket PDFNEWJAVA-35819 for further investigation and rectification. We will notify you as soon as it is resolved.

We are sorry for the inconvenience caused.

Best Regards,

Hello,


Is it possible to get an update concerning this inquiry?

Thank you in advance,
Samnang

Hi Samnang,


Thanks for your inquriy. I am afraid the issue is recently logged and it is still pending for investigation. As soon as investigation of the issue is completed then we will be in good position to share any ETA/findings with you. We will keep you updated about the issue resolution progress.

We are sorry for the inconvenience caused.

Best Regards,

The issues you have found earlier (filed as PDFNEWJAVA-35819) have been fixed in Aspose.Pdf for Java 16.10.0.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.