// For complete examples and data files, please go to https://github.com/groupdocs-metadata/GroupDocs.Metadata-for-.NET
// initialize TiffFormat
TiffFormat tiff = new TiffFormat(Common.MapSourceFilePath(filePath));
// get xmp
XmpPacketWrapper xmpPacket = tiff.GetXmpData();
if (xmpPacket != null)
{
// show XMP data
XmpProperties xmpProperties = tiff.GetXmpProperties();
// show XMP data
foreach (string key in xmpProperties.Keys)
{
try
{
XmpNodeView xmpNodeView = xmpProperties[key];
Console.WriteLine("[{0}] = {1}", xmpNodeView.Name, xmpNodeView.Value);
}
catch { }
}
}
else
{
Console.WriteLine("No XMP data found.");
}