Edit Digital Signatures in JPEG via Java

Java library to view & edit digital signatures in a JPEG file using popular electronic signature types. Manage jpeg properties and customize signing options within documents and images.


Download Free Trial

About GroupDocs.Signature for Java API

GroupDocs.Signature for Java is an advanced Java library to digitally sign documents using various 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, add, update, validate, remove and search 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 Edit Digital Signatures in JPEG

The code example below clearly demonstrates the steps about how to edit digital signatures in an already signed JPEG file in Java using GroupDocs.Signature library by adding just a few lines of code.

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("sampleSigned.pdf");
try 
{
    ImageSearchOptions options = new ImageSearchOptions();

    // search for image signatures in document
    List signatures = signature.search(ImageSignature.class,options);
    if (signatures.size() > 0)
    {
        ImageSignature imageSignature = signatures.get(0);
        imageSignature.setLeft(100);
        imageSignature.setTop(100);
        boolean result = signature.update("sampleSigned-output.jpeg",imageSignature);
        if (result)
        {
            System.out.print("Image signature at location " + imageSignature.getLeft() + "x" + imageSignature.getTop() + " and Size " + imageSignature.getSize() + " was updated in the document [" + fileName + ".");
        }
        else
        {
            System.out.print("Signature was not updated in the document! Signature at location " + imageSignature.getLeft() + "x" + imageSignature.getTop() + " and Size " + imageSignature.getSize() + " was not found!");
        }
    }
} catch (Exception e) {
    throw new GroupDocsSignatureException(e.getMessage());
}

Edit 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 editing API for documents and images. Update signatures from some of the popular file formats as stated below.

Edit e-Signatures from PDF

(Adobe Portable Document Format)

Edit e-Signatures from DOC

(Microsoft Word Document)

Edit e-Signatures from DOCM

(Microsoft Word Macro-Enabled Document)

Edit e-Signatures from DOCX

(Microsoft Word Open XML Document)

Edit e-Signatures from DOT

(Microsoft Word Document Template)

Edit e-Signatures from DOTX

(Word Open XML Document Template)

Edit e-Signatures from DOTM

(Microsoft Word Macro-Enabled Template)

Edit e-Signatures from RTF

(Rich Text Document)

Edit e-Signatures from ODT

(Open Document Text)

Edit e-Signatures from OTT

(OpenDocument Text Template)

Edit e-Signatures from XLS

(Microsoft Excel Binary File Format)

Edit e-Signatures from XLSX

(Microsoft Excel Open XML Spreadsheet)

Edit e-Signatures from XLSM

(Microsoft Excel Macro-Enabled Spreadsheet)

Edit e-Signatures from XLSM

(Microsoft Excel Macro-Enabled Spreadsheet)

Edit e-Signatures from XLSB

(Microsoft Excel Binary Worksheet)

Edit e-Signatures from XLTX

(Microsoft Excel template)

Edit e-Signatures from XLTM

(Microsoft Excel macro-enabled template)

Edit e-Signatures from ODS

(Open Document Spreadsheet)

Edit e-Signatures from OTS

(OpenDocument Spreadsheet Template)

Edit e-Signatures from PPT

(PowerPoint Presentation)

Edit e-Signatures from PPTX

(PowerPoint Open XML Presentation)

Edit e-Signatures from PPS

(Microsoft PowerPoint 97-2003 Slide Show)

Edit e-Signatures from PPSX

(PowerPoint Open XML Slide Show)

Edit e-Signatures from POTM

(Microsoft PowerPoint Macro-Enabled Template)

Edit e-Signatures from POTX

(Microsoft PowerPoint Template)

Edit e-Signatures from PPTM

(Microsoft PowerPoint Presentation)

Edit e-Signatures from ODP

(OpenDocument Presentation)

Edit e-Signatures from OTP

(OpenDocument Presentation Template)

Edit e-Signatures from TIFF

(Tagged Image File Format)

Edit e-Signatures from GIF

(Graphics Interchange Format)

Edit e-Signatures from PNG

(Portable Network Graphic)

Edit e-Signatures from BMP

(Bitmap File Format)

Edit e-Signatures from CDR

(CorelDraw Vector Graphic Drawing)

Edit e-Signatures from SVG

(Scalable Vector Graphics)

Edit e-Signatures from PSD

(Adobe Photoshop Document)

Edit e-Signatures from WMF

(Windows Metafile)

Edit e-Signatures from EMF

(Enhanced Metafile Format)

Edit e-Signatures from CMX

(Corel Metafile eXchange Image)

Edit e-Signatures from PPSM

(Microsoft PowerPoint Macro-Enabled Slide Show)

Edit e-Signatures from DCM

(Digital Imaging and Communications in Medicine)

Back to top
 English