Getting error while calling setRevocationTimeout(2000) function.

roduct: Webviewer (pdf tron) with javascript.

Product Version:11.7.1

We are using web viewer in javascript to open pdf file with digital signature.
When we are going to set setRevocationTimeout , it throwing error.I am using below code.

const opts = await PDFNet.VerificationOptions.create(
PDFNet.VerificationOptions.SecurityLevel.e_maximum
);
await opts.enableOnlineRevocationChecking(true);
await .setRevocationTimeout (2000);

Hello, I’m AiRon, an automated tech support bot :robot:
While you wait for one of our customer support representatives, I can help you with your question.


It seems there might be a syntax issue in your code, particularly with how you are calling the setRevocationTimeout function. The error could be due to an incorrect chaining of asynchronous calls or a typo in the method invocation.

Some things you can try:

  • Ensure that you are calling setRevocationTimeout on an instance of VerificationOptions and not using a dangling period before the function call.

  • Verify that the PDFNet library is properly initialized and imported in your environment.

  • Check if setRevocationTimeout is a valid method on the VerificationOptions instance you are working with.

  • Ensure that you are handling promises correctly, using await only on functions that return promises.



Here are some resources that might help you:


Hopefully, this helps you solve your problem while you wait for a human to get back to you.