when i use this jar in my java application I cant import any class from jar with sample code
// Verifying Digital Signatures in a PDF document using Signature API for Java by GroupDocs
Signature signature = new Signature(“sample_signed.pdf”);
DigitalVerifyOptions options = new DigitalVerifyOptions(“certificate.pfx”);
options.setComments(“Test comment”);
options.setPassword(“1234567890”);
Can you please share if you are using some IDE to add reference?
Let’s double check on following
To import the GroupDocs.Signature for Java 21.8 library in your project, please add a dependency to the project .pom file:
com.groupdocs
groupdocs-signature
21.8
And then rebuild the project.
If you use any IDE (for example IntelliJ), then you can also add the library by local path (Screenshot by Lightshot):
ProjectStructure>>Libraries>>Java>>local path to the library , to avoid the issues with class dependencies.
Please check with documentation below
how to run GroupDocs.Signature for Java demo examples.
Hope it will help
Waiting for your reply if this will help you!
Thank you!
It looks like you are experiencing a reference issue.
May I ask you to copy the library to your [lib] folder in the project and import the Signature from the new path
So I would recommend using the way described here