.NET Metadata API to Read, Extract, and Edit Metadata

Develop cross-platform solutions to manage metadata in PDF, Microsoft Office, emails, images, audio, video, and more files with the GroupDocs .NET metadata manipulation API.

Download Free TrialView All APIs

Comprehensive Metadata Management in .NET

GroupDocs.Metadata for .NET is a flexible metadata management API that empowers software and app developers to effortlessly read, extract, edit, and remove the metadata of documents and images within their web and desktop solutions across different .NET frameworks. It includes support for more than 80 well-known file formats, such as Microsoft Office formats (Word, Excel, PowerPoint), PDF, OpenDocument, OneNote, Project, EML, PST, MSG, MP3, AVI, MOV, PNG, BMP, JPG, GIF, and more. The API helps developers enhance their document management solutions by seamlessly integrating metadata manipulation capabilities.

Designed with ease of use in mind, the .NET metadata API offers accurate metadata processing and versatility in data file support. It boosts productivity by helping users enhance the workflows of their existing document metadata apps and build new solutions from scratch. Multiple metadata standards, including XMP, IPTC, and EXIF, are supported by the .NET API. Users can not only extract document and image metadata with the API but also obtain word and character counts in a document, search and manipulate specific metadata properties, work with secure documents, retrieve digital signatures, comments, and data related to the hidden document pages, retrieve technical data from multimedia (audio, video, images) files, load files from various data sources, and do much more. GroupDocs.Metadata for .NET offers countless possibilities to efficiently manage the metadata of your files by simplifying the process and unlocking the full potential of your solutions.

Getting Started

The System Requirements page of the .NET metadata API provides information on the recommended OS, framework, and platform settings. Before getting started, please visit the page to review these details and ensure compliance with the outlined requirements to enjoy an immaculate user experience.

GroupDocs.Metadata for .NET Installation

Please download the MSI installer or the DLLs from the downloads section to install the library. You can also use the NuGet package to set up the .NET metadata library. Please find the command for the Visual Studio package manager below:

PM > Install-Package GroupDocs.Metadata

Master Reading and Extracting Metadata in Word and PDF Documents in .NET

GroupDocs.Metadata for .NET offers advanced file metadata processing in .NET with easy-to-use methods. It supports custom metadata handling in .NET applications and reading and manipulating the built-in metadata among supported data files. The metadata library for .NET is the perfect choice for developing Word and PDF metadata editors that can add and update custom metadata properties while managing the default or built-in metadata smoothly. This section explains the API’s ability to read metadata in Word documents and extract PDF metadata easily.

Read Metadata in Word Documents in C#

With the help of the document metadata manipulation API, developers can build comprehensive solutions to access, view, and manipulate the metadata in Word documents. The following C# coding example provides more information on reading and displaying built-in DOCX metadata properties.

using (Metadata metadata = new Metadata("C:\MetadataTest\source.docx"))
{
	var root = metadata.GetRootPackage();

	Console.WriteLine(root.DocumentProperties.Author);
	Console.WriteLine(root.DocumentProperties.CreatedTime);
	Console.WriteLine(root.DocumentProperties.Company);
	Console.WriteLine(root.DocumentProperties.Category);
	Console.WriteLine(root.DocumentProperties.Keywords);

	// ... 
}

Extract Metadata in PDF Documents in .NET

The metadata of PDF documents provides insight into different file attributes, similar to other file formats. You can programmatically extract metadata from PDFs using the .NET API and process it as needed. The code sample below focuses on extracting and displaying the PDF metadata property values.

  • Load the input PDF document by creating a Metadata class object.
  • Fetch file metadata properties using the FindProperties method.
  • Process, extract, and display the string and DateTime property values.
using (Metadata metadata = new Metadata(“C:\MetadataTest\sourceFile.pdf”))
            {
                // Fetch all metadata properties from the file
                var properties = metadata.FindProperties(p => true);
                foreach (var property in properties)
                {
                    // Process string and DateTime properties only
                    if (property.Value.Type == MetadataPropertyType.String)
                    {
                        Console.WriteLine(property.Value.ToClass());
                    }
                    else if (property.Value.Type == MetadataPropertyType.DateTime)
                    {
                        Console.WriteLine(property.Value.ToStruct(DateTime.MinValue));
                    }
                }
            }

The GitHub examples page of GroupDocs.Metadata for .NET contains more coding examples to help you with the initial learning curve. Please use our Free Online Document and Image Metadata Manipulation Apps to view and edit the metadata of DOCX, XLSX, PPTX, PDF, VSD, JPEG, MPP, MSG, and more files using your mobile devices.

Simplify Cross-platform Metadata Manipulation in .NET

GroupDocs.Metadata for .NET is a high-performance metadata extraction API to manage document and image metadata smoothly. The API allows manipulating hidden document data, thus helping efficiently handle confidential file information. One of the key API features is its cross-platform compatibility, as it functions equally well across Windows, Mac, and Linux operating systems. Experience peerless consistency and reliable performance with the .NET metadata API, regardless of your development environment. It supports multiple .NET frameworks, which makes it convenient to integrate the metadata extraction and manipulation solutions developed using the API with your existing projects. The integration requires only a few lines of .NET code to help you further simplify the development process. Experience unmatched metadata viewing, retrieving, editing, and management with our feature-rich API, and start optimizing your .NET solutions today.

FAQ

1. What is GroupDocs.Metadata for .NET API?

GroupDocs.Metadata for .NET is a library for developers to work with the metadata in documents, images, audio, and video files on the .NET platform. With this library, developers can view, read, extract, modify, and remove the metadata of the supported file formats in their .NET document metadata management solutions.

2. What document formats does the API support?

A multitude of well-known file formats are supported by the .NET API, including Microsoft Word and PDF documents, Excel spreadsheets, PowerPoint presentations, OpenDocument, OneNote, Visio, Project, Outlook, AutoCAD, audio, videos, fonts, raster images (JPG, BMP, PNG, TIFF, GIF, WEBP), ZIP archives, EPUB, and more files.

3. Are there code examples to help learn about extracting document metadata using the .NET API?

Yes, we provide coding examples for the .NET metadata API, which are available on the GitHub examples page of the API. With the help of the coding examples, users can pick up the pace and start reading, extracting, and manipulating document metadata in no time.

4. Is the API secure for sensitive documents and data?

Yes, GroupDocs.Metadata for .NET API prioritizes the security of sensitive data. We ensure data safety and integrity and take all required measures to provide you with a secure user experience.

5. Is GroupDocs.Metadata for .NET compatible with different .NET frameworks?

Yes, the .NET metadata library boasts cross-platform capabilities and is compatible with various .NET frameworks. You can confidently use the API on different operating systems and platforms, and no additional third-party software installations are needed to use the library.

Looking for help?

Checkout our support channels for help with your questions related to GroupDocs product API features and working.

Ready to get started?

Download Free Trial View All APIs