GroupDocs.Metadata for .NET offers an advanced set of metadata management and manipulation features, allowing developers to easily read, edit, remove, search, compare, replace and export metadata information from images and document formats without using any external software. Extract metadata details from PDF, Word, Excel, PowerPoint, Outlook, OneNote, Visio, Project, AutoCAD, Archive and Multimedia file formats, and perform supported metadata operations with true flexibility.
GroupDocs.Metadata makes it easy for .NET developers to read and extract metadata information from DOTX files from within their applications by implementing a few easy steps.
GroupDocs.Metadata for .NET 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.
using (var metadata = new GroupDocs.Metadata.Metadata("input.dotx"))
{
// extract all metadata properties that fall into a particular category
var properties = metadata.FindProperties(
p => p.Tags.Any(t => t.Category == GroupDocs.Metadata.Tagging.Tags.Content));
// iterate over all properties and display
foreach (var property in properties)
{
Console.WriteLine("{0} = {1}", property.Name, property.Value);
}
// extract all properties having a specific type and value
var year = DateTime.Today.Year;
properties = metadata.FindProperties(
p => p.Value.Type == GroupDocs.Metadata.Common.MetadataPropertyType.DateTime &&
p.Value.ToStruct(DateTime.MinValue).Year == year);
// display all datetime properties with the year value equal to the current year
foreach (var property in properties)
{
Console.WriteLine("{0} = {1}", property.Name, property.Value);
}
// extract all properties having names matching the specified regex
const string pattern = "^author|company|(.+date.*)$";
var regex = new System.Text.RegularExpressions.Regex(pattern,
System.Text.RegularExpressions.RegexOptions.IgnoreCase);
properties = metadata.FindProperties(p => regex.IsMatch(p.Name));
// display properties whose names match the following pattern
foreach (var property in properties)
{
Console.WriteLine("{0} = {1}", property.Name, property.Value);
}
}
Retrieve metadata information of DOTX 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
Files with DOTX extension are template files created by Microsoft Word to have pre-formatted settings for generation of further DOCX files. A template file is created in order to have specific user settings that should be applied to subsequent flies created from these. These settings include page margins, borders, headers, footers, and other page settings. Such templates are used in official documents such as company letterheads and standardized forms. The DOTX file format was introduced with the release of Microsoft Office 2007 to replace the binary DOT file format, but is supported by higher versions as well. Microsoft Word by default opens every new document based on normal.dot file. If modified, all the new files created will result in same settings as from the template file. In Microsoft Word 2007, the DOT file format has been replaced with Office OpenXML based DOTX file format.
Read More About DOTX File FormatMulti format documents and images metadata extraction API for .NET. Retrieve metadata of some of the popular file formats as stated below.
(Adobe Portable Document Format)
(Microsoft Word Document)
(Microsoft Word Macro-Enabled Document)
(Microsoft Word Open XML Document)
(Microsoft Word Document Template)
(Word Open XML Document Template)
(Microsoft Excel Binary File Format)
(Microsoft Excel Open XML Spreadsheet)
(Microsoft Excel Macro-Enabled Spreadsheet)
(OOXML Macro Enabled Workbook Template)
(PowerPoint Presentation)
(Microsoft PowerPoint Slide Show)
(PowerPoint Open XML Presentation)
(PowerPoint Open XML Slide Show)
(Microsoft PowerPoint Open XML Template)
(Microsoft PowerPoint Template)
(Microsoft PowerPoint Presentation)
(Microsoft PowerPoint Slide Show)
(Open Document Spreadsheet)
(Open Document Text)
(Tagged Image File Format)
(JPEG Image)
(Portable Network Graphic)
(Graphical Interchange Format File)
(Bitmap File Format)
(JPEG 2000 Core Image File)
(Raster Web Image File Format)
(Adobe Photoshop Document)
(Windows Metafile)
(Enhanced Metafile Format)
(Microsoft Project Document)
(Microsoft Outlook E-mail Message)
(E-mail Message)
(Autodesk Design Data Formats)
(AutoCAD Drawing Interchange)
(Microsoft OneNote)
(MPEG Audio Layer III)
(Waveform Audio File Format)
(Digital Imaging & Comm in Medicine)
(Audio Video Interleave File)
(Microsoft Visio 2003-2010 Drawing)
(Microsoft Visio Drawing)
(Microsoft Visio 2003-2010 Stencil)
(Microsoft Visio 2003-2010 XML Drawing)
(Microsoft Visio 2003-2010 XML Stencil)
(Archive File Format)
(Digital E-Book File Format)
(Electronic Business Card)
(vCard)