usmanazizgroupdocs
10/7/2016 - 9:09 AM

GetIPTCMetadataInTiff.vb

' For complete examples and data files, please go to https://github.com/groupdocs-metadata/GroupDocs.Metadata-for-.NET
' initialize TiffFormat
Dim tiffFormat As New TiffFormat(Common.MapSourceFilePath(filePath))

' check if TIFF contains IPTC metadata
If tiffFormat.HasIptc Then
    ' get iptc collection
    Dim iptc As IptcCollection = tiffFormat.GetIptc()

    ' and display it
    For Each iptcProperty As IptcProperty In iptc
        Console.Write("Tag id: {0}, name: {1}", iptcProperty.TagId, iptcProperty.Name)
    Next
End If