Edit Digital Signatures in DOC via Java

Java library to view & edit digital signatures in a DOC file using popular electronic signature types. Manage doc 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 DOC

The code example below clearly demonstrates the steps about how to edit digital signatures in an already signed DOC 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.doc",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 DOC Signature Live Demos

Add DOC 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 DOC File Format

Files with .doc extension represent documents generated by Microsoft Word or other word processing documents in binary file format. The extension was initially used for plain text documentation on several different operating systems. It can contain several different types of data such as images, formatted as well as plain text, graphs, charts, embedded objects, links, pages, page formatting, print settings and a lot others. The format was popular for all sorts of documentation due to the variety of options it offers to users for writing manuals, proposals, specifications, resumes, articles or any similar documents. The updated version of DOC is DOCX which is based on Office OpenXML whose specifications are openly available. Learn more about DOC file format

Read More What is DOC 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