Sign .OTT files with BARCODE signatures in Java

How to add BARCODE Signature with a few lines of Java code


Download Free Trial

About GroupDocs.Signature for Java API

GroupDocs.Signature for Java is a advanced .NET API to electronically sign digital documents using various signature types such as text, image, barcode, QR-code, stamp, form-field and metadata. Users can load, edit, validate, save, remove, preview and search digital signatures within PDF, Microsoft Word, Excel worksheets, PowerPoint presentations, Adobe Photoshop, metafiles and image file formats, with additional support for customizing signature properties as needed.

Steps to sign OTT with BARCODE in Java

GroupDocs.Signature for Java provides ability to sign OTT documents with BARCODE signatures quick and easily.

  • Create an instance of Signature class providing OTT file supposed to signing as path or memory stream
  • Instantiate SignOptions class and set all demanded data.
  • Invoke the Signature.Sign passing output OTT file or memory stream

System Requirements

Documents signing with GroupDocs.Signature for Java can be performed in just a few simple steps. Our APIs are supported on all major platforms and operating systems. Before executing the code below, make sure you have the following prerequisites installed on your system.

  • Operating systems: Microsoft Windows, Linux, MacOS
  • Development environments: NetBeans, Intellij IDEA, Eclipse, etc.
  • Java runtime: J2SE 6.0 and above
  • Get the latest GroupDocs.Signature for Java from Maven


// Set up input OTT file
string filePath = "input.ott";
// Set up output file
string outputFilePath = "output.ott";

// Instantiate Signature for input file
Signature signature = new Signature(filePath);

// create barcode option with predefined barcode text
BarcodeSignOptions options = new BarcodeSignOptions("John Smith");

// setup Barcode encoding type
options.setEncodeType(BarcodeTypes.DOTCODE);

// set signature position
options.setLeft(50);
options.setTop(50);
options.setWidth(200);
options.setHeight(50);

// sign OTT document
SignResult result = signature.sign(outputFilePath, options);

Signing OTT documents with BARCODE Live Demo

Sign OTT file with BARCODE signature right now by visiting the GroupDocs.Signature App website. Free online demo waiting for you.

No need to download API

No need to write any code

Just upload the source file

Get download link to save the file

Signing Other Document Formats with DOTCODE BARCODE using Java

Java DOTCODE BARCODE signatures management API for documents and images. Add DOTCODE BARCODE signatures to some of the popular file formats as stated below.

SIGN

(Portable Document Format)

SIGN

(Microsoft Word Binary Format)

SIGN

(Office 2007+ Word Document)

SIGN

(Microsoft Word 2007 Marco File)

SIGN

(Microsoft Word Template Files)

SIGN

(Microsoft Word 2007+ Template File)

SIGN

(Microsoft Word Template File )

SIGN

(OpenDocument Text File Format)

SIGN

(Rich Text Format)

SIGN

(Microsoft Excel Spreadsheet (Legacy))

SIGN

(Open XML Workbook)

SIGN

(Macro-enabled Spreadsheet)

SIGN

(Excel Binary Workbook)

SIGN

(Comma Seperated Values)

SIGN

(OpenDocument Spreadsheet)

SIGN

(OpenDocument Spreadsheet Template)

SIGN

(Excel Template)

SIGN

(Excel Macro-Enabled Template)

SIGN

(Microsoft PowerPoint 97-2003)

SIGN

(Open XML presentation Format)

SIGN

(PowerPoint Slide Show)

SIGN

(PowerPoint Slide Show)

SIGN

(OpenDocument Presentation Format)

SIGN

(OpenDocument Standard Format)

SIGN

(Microsoft PowerPoint Template Presentation)

SIGN

(Microsoft PowerPoint Template File)

SIGN

(Macro-enabled Presentation File)

SIGN

(Macro-enabled Slide Show)

SIGN

(Portable Network Graphic)

SIGN

(Joint Photographic Expert Group Image)

SIGN

(Bitmap Image File)

SIGN

(Graphical Interchange Format)

SIGN

(Tagged Image File Format)

SIGN

(Scalar Vector Graphics)

SIGN

(Raster Web Image Format)

SIGN

(Windows Metafile)

Back to top