where “certificate” is my PEM self-signed certificate (input as string) but it didn’t work. The other methods listed there Class VerificationOptions are somehow not reachable through instance.UI.VerificationOptions
Hello, thank you, sorry but I did use the instance.UI.VerificationOptions as you can see from my first post :
const { VerificationOptions } = instance.UI;
I took it from the ViewerDigitalSignatureValidationTest, that is why I am a bit concerned about how to use it. Maybe the URL has to provide another type of file, not PEM ? Do I need to purchase the full license in order to get the validation succeeded ?
My bad, I misread the code snippet. The API does take in PEM files, but it also required the Full API of WebViewer, so if you pass in fullAPI: true into the WebViewer constructor it should work!
Let me know if that works for you!
Best regards,
Tyler Gordon
Web Development Support Engineer
PDFTron
I found a guide here on adding a trust certificate: PDFTron
It looks like you need to do doc.initSecurityHandler() and create options before adding the cert.
Let me know if this works for you!
Best regards,
Tyler Gordon
Web Development Support Engineer
PDFTron