GroupDocs.Metadata at a glance

Following is an overview of GroupDocs.Metadata for .NET

Illustration metadata

C# applications integration

GroupDocs.Metadata for .NET API is easy to integrate with C#, ASP.NET and other .NET based applications to help your end-users manipulate metadata from a range of images, documents and other media file formats without installing any external software. The .NET metadata library supports building tools to quickly add metadata viewer, editor, remover, extractor, comparison and exporter functionalities within a number of industry standard document formats such as PDF, Microsoft Office Word, Excel spreadsheets, PowerPoint presentations, Outlook emails, Project, Visio diagrams, OneNote, images, AutoCAD, Photoshop, audio, video and metafiles.

Various metadata types

The Metadata API is very flexible and easy to operate with. It gets the document file as input, analyses the metadata information, allows to perform supported meta data operations and save the modified file to access quickly in future use. It works with most notable metadata standards such as built-in, XMP, EXIF, IPTC, Image Resource Blocks, ID3 and custom metadata properties. Through GroupDocs.Metadata for .NET API, you can also compare two documents to identify differences and similarities present in their metadata properties. You can also export metadata of required documents to Excel, CSV or DataSet.

All popular environments are supported

GroupDocs.Metadata for .NET can be used to develop applications in any development environment that targets .NET platform. It is compatible with all .NET based languages and supports popular operating systems (Windows, Linux, MacOS) where Mono or .NET frameworks (including .NET Core) can be installed.

Platform Independence

GroupDocs.Metadata for .NET supports following Operating Systems, Frameworks & Package Managers:

Amazon
Docker
Azure
VS Code
ReSharper
macOS
Linux
NuGet

Supported file formats

GroupDocs.Metadata for .NET supports following document file formats.

Office formats

  • Portable: PDF
  • Word: DOC, DOCX, DOCM, DOT, DOTX, DOTM, RTF, TXT
  • Excel: XLS, XLSX, XLSM, XLSB, XLTM, XLT, XLTM, XLTX, XLAM, SXC, SpreadsheetML
  • PowerPoint: PPT, PPTX, PPS, PPSX, PPSM, POT, POTM, POTX, PPTM
  • OpenDocument: ODT, ODS
  • Visio: VSD, VDX, VSS, VSSX, VSX, VST, VSTX, VTX, VSDX, VDW, VSTM, VSSM, VSDM

Media & Graphics

  • Video: AVI, MOV, QT, FLV
  • Popular image formats: JPG, JPEG, JPE, JP2, PNG, BMP
  • Multi-page images: GIF, WEBP, TIFF, DJVU, DJV, DICOM
  • Audio: MP3, WAV
  • Matroska Media Container: MKV, MKA, MK3D, WEBM
  • AutoCAD: DWG, DXF
  • Photoshop: PSD

Other

  • Outlook: MSG, EML, EMLX, PST, OS
  • Fonts: OTF, OTC, TTF, TTC
  • Project: MPP
  • Metafiles: EMF, WMF
  • vCard: VCF, VCR
  • OneNote: ONE
  • Others: EPUB, ZIP, TORRENT, ASF

GroupDocs.Metadata for .NET features

Use Metadata to Protect PDF, Office, Images and other formats

Feature icon

Identify Built-in & Custom Metadata

Many file formats have mandatory metadata. Manipulate them as well as custom metadata for your own aims

Feature icon

Find Photos Made on Specific Camera

Get info about photos stored in metadata, including camera manufacturer, model, resolution, etc

Feature icon

Ability to Detect/Remove Digital Signatures

Find all digital metadata in your business files and remove what you need

Feature icon

Photo Location

Import image metadata properties and remove location info from photos

Feature icon

Metadata Search

Search metadata properties of files and enumerate any type of metadata

Feature icon

Clean Business Data

Remove metadata and comments from reports and documents

Feature icon

Document Previews

Generate image previews for EPUB, CAD, EML, and MSG files

Feature icon

Matroska Multimedia Support

Read Matroska subtitles and retrieve metadata of audio and video files

Feature icon

Get Metadata of Archive Formats & Torrents

Manipulate metadata of archive files like .ZIP and files with torrent data

Feature icon

Run-time Recognition of Document File Type

Our solution provides the ability to detect file or stream type before metadata processing

Feature icon

Analyze Metadata Distinctions

Compare metadata properties of supported formats and identify differences or similarities

Feature icon

Reducing Memory Consumption of Documents & Images

Clean documents and images from extra hidden data

Feature icon

Control Office Documents

Retrieve and remove hidden data in Microsoft Word, Excel, PowerPoint, and PDF files

Feature icon

Replace Metadata Properties of Supported File Formats

It is completely possible to get a list of suitable document metadata and replace the content of each entry

Feature icon

TIFF Image Support

Add, update, and delete IPTC metadata packages in TIFF images

Feature icon

Microsoft Excel Support

Extract metadata from Microsoft Excel files starting from Excel 95

Feature icon

PNG Image Support

Extract text metadata from PNG image files

Feature icon

MIME Type Detection

Detect the MIME type of a specific file or file stream

Feature icon

Image Previews

Retrieve thumbnails and render image previews for supported formats

Feature icon

Matroska Multimedia Security

Identify password protection and support for the Matroska multimedia container

Feature icon

Built-In Metadata Support

Use a defined key to read metadata properties of supported formats

Feature icon

EXIF Image Metadata

Update EXIF metadata properties in WEBP, PNG, and PSD files

Feature icon

Emails & Fonts Support

Read metadata of email messages and parse OpenType font files

Feature icon

Multimedia Files Processing

Extract XMP metadata properties in MOV, MP3, and WEBP files

Code samples

Some use cases of typical GroupDocs.Metadata for .NET operations

Find hidden metadata

To control inner document content you may find and process document metadata:

How to get specific document metadata

// Load source document to Metadata constructor
using (Metadata metadata = new Metadata("source.pptx"))
{
    // Get all the properties that contains the name of the last document editor
    // or the date/time the document was last modified
    var properties = metadata.FindProperties(
        p => p.Tags.Contains(Tags.Person.Editor) || 
        p.Tags.Contains(Tags.Time.Modified));

    // Process retrieved metadata entries
    foreach (var property in properties)
    {
        Console.WriteLine("Property name: {0}, Property value: {1}", property.Name, property.Value);
    }
}

Secure documents content

Add hidden metadata to your business files in order to protect its content:

How to add some missing metadata properties to a file regardless of its format.

// Load source document
using (Metadata metadata = new Metadata("source.pdf"))
{
    if (metadata.FileFormat != FileFormat.Unknown && !metadata.GetDocumentInfo().IsEncrypted)
    {
        // Add a property containing the file last printing date if it's missing
        // Property will be added if the document supports such type of metadata
        var affected = metadata.AddProperties(p => p.Tags.Contains(Tags.Time.Printed), new PropertyValue(DateTime.Now));
          
        Console.WriteLine("Affected properties: {0}", affected);

        // Save modified document to a specified path
        metadata.Save("output.pdf");
    }
}
 English