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