GroupDocs.Metadata for Java API

Remove XLTM Metadata In Java

Remove metadata properties from XLTM and many other popular documents, images and multimedia file formats using GroupDocs.Metadata for Java API

Steps for Removing Metadata to XLTM in Java

GroupDocs.Metadata makes it easy for Java developers to delete metadata information from XLTM files from within their applications by implementing a few easy steps.

  1. Load the XLTM file to be updated.
  2. Pass a search predicate to the RemoveProperties method.
  3. Check the number of properties that were actually removed.
  4. Save the changes.
// Clear XLTM document metadata
try (Metadata metadata = new Metadata("input.xltm");
    // Remove all mentions of any people contributed in file creation
    // Remove a custom property with the specified name
    int affected = metadata.removeProperties(
        new FallsIntoCategorySpecification(Tags.getPerson()).
        or(new WithNameSpecification("CustomProperty")));
    System.out.println(String.format("Affected properties: %s", affected));
    // Save the cleared file"output.xltm");
<dependencies> <dependency> <groupId>com.groupdocs</groupId> <artifactId>groupdocs-metadata</artifactId> <version></version> </dependency> </dependencies> <repositories> <repository> <id></id> <name>GroupDocs Repository</name> <url></url> </repository> </repositories>
click to copy
More examples Documentation

Manage Document Metadata with Ease

Our solution simplifies managing your document metadata. Easily access, edit, and update various document properties to keep your files organized and searchable.

Protect Documents Metadata

Effortless Metadata Control

Quickly get and process a document’s metadata. Gain valuable insights like author, creation date, and more.

Simple Metadata Updation

Directly edit document metadata. Update properties for better organization, searchability, and accurate information.

Powerful Metadata Management

Perform advanced operations on document metadata. Easily handle tasks like adding custom properties, removing unnecessary data, and ensuring data consistency.

Clear ZIP archive metadata

The following code snippet shows how to remove the user comment from a ZIP archive


//  Load archive file for further processing
try (Metadata metadata = new Metadata("")) {

    //  Get main metadata package
    ZipRootPackage root = metadata.getRootPackageGeneric();

    //  Remove archive comments

    //  Save cleaned file"");

About GroupDocs.Metadata for Java API

GroupDocs.Metadata for Java is an advanced metadata fields manipulation solution to easily read, add, update, delete, find, compare, exchange and export metadata information from images and document formats without using any external software. Remove metadata details from 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.
Learn more
About illustration

Ready to get started?

Try GroupDocs.Metadata features for free or request a license

Removing Metadata Of Other File Formats

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