Search Digital Signature in JPEG via Java

Java eSignature API to search & validate digital signatures in a JPEG file. Manipulate Image, Barcode, QR-Code, Stamp, Text, Optical & Metadata signatures from digitally signed documents.


Download Free Trial

About GroupDocs.Signature for Java API

GroupDocs.Signature for Java is an advanced Java eSignature library to digitally sign documents using various signature signature types such as text, image, barcode, stamp, form-field, QR-code and metadata. By adding just a few lines of code, empower your Java applications with features to view, create, edit, validate, remove and find digital signatures within PDF, Microsoft Word, Excel worksheets, PowerPoint presentations, Adobe Photoshop, metafiles and image file formats. The e-signature API also supports additional features to customize signature properties as per requirements.

How to Search Digital Signatures from JPEG

Below Java code example clearly demonstrates the steps to search for digital signatures within a JPEG file in Java by adding just a few lines of code.

  • Create new instance of Signature class and pass source document path as a constructor parameter.
  • Instantiate the DigitalSearchOptions object according to your requirements and specify search options.
  • Call search method of Signature class instance and pass DigitalSearchOptions to it.

System Requirements

GroupDocs.Signature for Java APIs are supported on all major platforms and operating systems. Before executing the code below, please make sure that you have the following prerequisites installed on your system.

  • Operating Systems: Microsoft Windows, Linux, MacOS
  • Development Environments: Visual Studio, Xamarin, MonoDevelop
  • Frameworks: .NET Framework, .NET Standard, .NET Core, Mono
  • Download the latest version of GroupDocs.Signature for Java from NuGet

Signature signature = new Signature("signed.pdf");
DigitalSearchOptions options = new DigitalSearchOptions();
// specify special search criteria
options.setComments("Test comment");
// certificate issues criteria
options.setIssuerName("John");
// digital certificate subject
options.setSubjectName("Test");
// specify date range period of signature
options.setSignDateTimeFrom(DateUtils.addMonths(new Date(), -1));
options.setSignDateTimeTo(new Date());
 
// search for signatures in document
List signatures = signature.search(DigitalSignature.class, options);
System.out.print("\nSource document contains following signatures.");
for (DigitalSignature digitalSignature : signatures)
{
    System.out.print("Digital signature found from "+digitalSignature.getSignTime()+" with validation flag "+digitalSignature.isValid()+". Certificate SN "+ digitalSignature.getCertificate().getType());
}

Search JPEG Signature Live Demos

Add JPEG file electronic signatures right now by visiting GroupDocs.Signature Live Demos website. The live demo has the following benefits

No need to download API

No need to write any code

Just upload the source file

Get download link to save the file

What is JPEG File Format

A JPEG is a type of image format that is saved using the method of lossy compression. The output image, as result of compression, is a trade-off between storage size and image quality. Users can adjust the compression level to achieve the desired quality level while at the same time reduce the storage size. Image quality is negligibly affected if 10:1 compression is applied to the image. The higher the compression value, the higher the degradation in image quality. JPEG image file format was standardized by the Joint Photographic Experts Group and, hence, the name JPEG. The format has been the choice of storing and transmitting photographic images on the web. Almost all Operating systems now have viewers that support visualization of JPEG images, which are often stored with JPG extension as well. Even the web browsers support visualization of JPEG images. Learn more about JPEG file format

Read More What is JPEG File Format

Other Available Options

Multi-format digital signatures searching API for documents and images. Find signatures from within some of the popular file formats as stated below.

Search Signatures in PDF

(Adobe Portable Document Format)

Search Signatures in DOC

(Microsoft Word Document)

Search Signatures in DOCM

(Microsoft Word Macro-Enabled Document)

Search Signatures in DOCX

(Microsoft Word Open XML Document)

Search Signatures in DOT

(Microsoft Word Document Template)

Search Signatures in DOTX

(Word Open XML Document Template)

Search Signatures in DOTM

(Microsoft Word Macro-Enabled Template)

Search Signatures in RTF

(Rich Text Document)

Search Signatures in ODT

(Open Document Text)

Search Signatures in OTT

(OpenDocument Text Template)

Search Signatures in XLS

(Microsoft Excel Binary File Format)

Search Signatures in XLSX

(Microsoft Excel Open XML Spreadsheet)

Search Signatures in XLSM

(Microsoft Excel Macro-Enabled Spreadsheet)

Search Signatures in XLSM

(Microsoft Excel Macro-Enabled Spreadsheet)

Search Signatures in XLSB

(Microsoft Excel Binary Worksheet)

Search Signatures in XLTX

(Microsoft Excel template)

Search Signatures in XLTM

(Microsoft Excel macro-enabled template)

Search Signatures in ODS

(Open Document Spreadsheet)

Search Signatures in OTS

(OpenDocument Spreadsheet Template)

Search Signatures in PPT

(PowerPoint Presentation)

Search Signatures in PPTX

(PowerPoint Open XML Presentation)

Search Signatures in PPS

(Microsoft PowerPoint 97-2003 Slide Show)

Search Signatures in PPSX

(PowerPoint Open XML Slide Show)

Search Signatures in POTM

(Microsoft PowerPoint Macro-Enabled Template)

Search Signatures in POTX

(Microsoft PowerPoint Template)

Search Signatures in PPTM

(Microsoft PowerPoint Presentation)

Search Signatures in ODP

(OpenDocument Presentation)

Search Signatures in OTP

(OpenDocument Presentation Template)

Search Signatures in TIFF

(Tagged Image File Format)

Search Signatures in GIF

(Graphics Interchange Format)

Search Signatures in PNG

(Portable Network Graphic)

Search Signatures in BMP

(Bitmap File Format)

Search Signatures in CDR

(CorelDraw Vector Graphic Drawing)

Search Signatures in SVG

(Scalable Vector Graphics)

Search Signatures in PSD

(Adobe Photoshop Document)

Search Signatures in WMF

(Windows Metafile)

Search Signatures in EMF

(Enhanced Metafile Format)

Search Signatures in CMX

(Corel Metafile eXchange Image)

Search Signatures in PPSM

(Microsoft PowerPoint Macro-Enabled Slide Show)

Search Signatures in DCM

(Digital Imaging and Communications in Medicine)

Back to top
 English