Edit Digital Signatures in TXT via Java

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

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

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

A file with .TXT extension represents a text document that contains plain text in the form of lines. Paragraphs in a text document are recognized by carriage returns and are used for better arrangement of file contents. A standard text document can be opened in any text editor or word processing application on different operating systems. All the text contained in such a file is in human-readable format and represented by sequence of characters. Learn more about TXT file format

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