// For complete examples and data files, please go to https://github.com/groupdocs-metadata/GroupDocs.Text-for-.NET
//get file actual path
String filePath = Common.getFilePath(fileName);
ExtractorFactory factory = new ExtractorFactory();
MetadataCollection metadata = factory.ExtractMetadata(filePath);
if (metadata == null)
{
Console.WriteLine("The document format is not supported");
}
foreach (string key in metadata.Keys)
{
Console.WriteLine(string.Format("{0} = {1}", key, metadata[key]));
}