Adding Metadata To XLS In Java

Add custom metadata properties to a wide range of business documents, images, audio & video file formats using GroupDocs.Metadata for Java.


Download Free Trial

About GroupDocs.Metadata for Java API

GroupDocs.Metadata for Java is an advanced metadata fields management and manipulation solution to easily view, update, remove, find, compare, exchange and export metadata information from images and document formats without using any external software. Add metadata details to Word documents, Excel spreadsheets, PowerPoint presentations, Outlook emails, OneNote, Visio, Project, PDF, AutoCAD, ZIp, Audio and Video file formats along with the support for working with many other metadata processing features.

Steps for adding Metadata to XLS in Java

GroupDocs.Metadata for Java makes it easy for Java developers to add metadata details to XLS files from within their applications by implementing a few easy steps.

  • Load XLS with an instance of Metadata class.
  • Use Metadata.AddProperties method to add the properties.
  • Use a predicate to find desired metadata properties.
  • Save the changes back in XLS format.

System Requirements

GroupDocs.Metadata 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: NetBeans, IntelliJ IDEA, Eclipse
  • Java Runtime Environments: J2SE 6.0 and above
  • Get the latest version of GroupDocs.Metadata for Java from Maven

// {steps.code.load_comment}
try (Metadata metadata = new Metadata("input.xls"))
{
    // add a property containing the content author
    int affected = metadata.addProperties(new ContainsTagSpecification(Tags.getTime().getPrinted()), new PropertyValue(new Date()));
    System.out.println(String.format("Affected properties: %s", affected));
    metadata.save("output.xls");
}

Live Demos to Add Metadata

Add metadata information to XLS file right now by visiting GroupDocs.Metadata 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

Adding Metadata Properties To Other File Formats

Multi format documents and images metadata addition API for Java. Retrieve metadata of some of the popular file formats as stated below.

Add Metadata to ZIP

(Zipped File)

Add Metadata to XLTX

(Excel Template)

Add Metadata to XLTM

(Excel Macro-Enabled Template)

Add Metadata to XLT

(Excel 97 - 2003 Template)

Add Metadata to XLSX

(Open XML Workbook)

Add Metadata to XLSM

(Macro-enabled Spreadsheet)

Add Metadata to XLSB

(Excel Binary Workbook)

Add Metadata to WMF

(Windows Metafile)

Add Metadata to WEBP

(Raster Web Image Format)

Add Metadata to WAV

(WAVE Audio File)

Add Metadata to VSX

(Visio Stencil XML File)

Add Metadata to VSS

(Visio Stencil File)

Add Metadata to VSDX

(Visio Drawing)

Add Metadata to VSD

(Visio Drawing File)

Add Metadata to VDX

(The 7th Guest Video File)

Add Metadata to TTF

(TrueType Font)

Add Metadata to TTC

(TrueType Font Collection)

Add Metadata to TIFF

(Tagged Image File Format)

Add Metadata to PSD

(Photoshop Document)

Add Metadata to PPTX

(Open XML presentation Format)

Add Metadata to PPTM

(Macro-enabled Presentation File)

Add Metadata to PPT

(Microsoft PowerPoint 97-2003)

Add Metadata to PPSX

(PowerPoint Slide Show)

Add Metadata to PPSM

(Macro-enabled Slide Show)

Add Metadata to PPS

(PowerPoint Slide Show)

Add Metadata to POTX

(Microsoft PowerPoint Template Presentation)

Add Metadata to POTM

(Microsoft PowerPoint Template File)

Add Metadata to POT

(Microsoft PowerPoint Template Files)

Add Metadata to PNG

(Portable Network Graphic)

Add Metadata to PDF

(Portable Document Format)

Add Metadata to OTF

(OpenType Font)

Add Metadata to ODT

(OpenDocument Text File Format)

Add Metadata to ODS

(OpenDocument Spreadsheet)

Add Metadata to MSG

(Outlook Message Item File)

Add Metadata to MPT

(Microsoft Project Template)

Add Metadata to MPP

(Microsoft Project File)

Add Metadata to MP3

(MP3 Audio File)

Add Metadata to MOV

(Apple QuickTime Movie)

Add Metadata to JPF

(JPEG 2000 Image)

Add Metadata to JPEG

(Joint Photographic Expert Group Image)

Add Metadata to JP2

(JPEG 2000 Core Image)

Add Metadata to HEIF

(High Efficiency Image Format)

Add Metadata to HEIC

(High Efficiency Image Format)

Add Metadata to GIF

(Graphical Interchange Format)

Add Metadata to FLV

(Flash Video File)

Add Metadata to EPUB

(Open eBook File)

Add Metadata to EML

(E-Mail Message)

Add Metadata to EMF

(Enhanced Metafile Format)

Add Metadata to DXF

(Autodesk Drawing Exchange Format)

Add Metadata to DWG

(AutoCAD Drawing File)

Add Metadata to DOTX

(Microsoft Word Template File )

Add Metadata to DOTM

(Microsoft Word 2007+ Template File)

Add Metadata to DOT

(Microsoft Word Template Files)

Add Metadata to DOCX

(Office 2007+ Word Document)

Add Metadata to DOCM

(Microsoft Word 2007 Marco File)

Add Metadata to DOC

(Microsoft Word Binary Format)

Add Metadata to DJVU

(Graphics File Format)

Add Metadata to DICOM

(Digital Imaging and Communications in Medicine)

Add Metadata to DCM

(DICOM Image)

Add Metadata to BMP

(Bitmap Image File)

Add Metadata to AVI

(Audio Video Interleave File)

Add Metadata to ASF

(Advanced Systems Format File)

Add Metadata to MKV

(Matroska Video File)

Add Metadata to ONE

(OneNote Document)

Add Metadata to DJVU

(Graphics File Format)

Back to top
 English