usmanazizgroupdocs
12/9/2015 - 7:35 AM

GetXMPPropertiesPngImage.cs

// For complete examples and data files, please go to https://github.com/groupdocsmetadata/GroupDocs_Metadata_NET
// initialize PngFormat
PngFormat pngFormat = new PngFormat(Common.MapSourceFilePath(filePath));

// get XMP data
XmpProperties xmpProperties = pngFormat.GetXmpProperties();

if (xmpProperties != null)
{
    // show XMP data
    foreach (string key in xmpProperties.Keys)
    {
        XmpNodeView xmpNodeView = xmpProperties[key];
        Console.WriteLine("[{0}] = {1}", xmpNodeView.Name, xmpNodeView.Value);
    }
}
else
{
    Console.WriteLine("No XMP data found.");
}