IIptc
Leave feedback
On this page
Represents base operations intended to work with IPTC metadata. Please find more information at http://en.wikipedia.org/wiki/International_Press_Telecommunications_Council.
public interface IIptc
| Name | Description |
|---|---|
| IptcPackage { get; set; } | Gets or sets the IPTC metadata package associated with the file. |
Learn more
This example shows how to read basic IPTC metadata properties.
using (Metadata metadata = new Metadata(Constants.JpegWithIptc))
{
IIptc root = metadata.GetRootPackage() as IIptc;
if (root != null && root.IptcPackage != null)
{
if (root.IptcPackage.EnvelopeRecord != null)
{
Console.WriteLine(root.IptcPackage.EnvelopeRecord.DateSent);
Console.WriteLine(root.IptcPackage.EnvelopeRecord.Destination);
Console.WriteLine(root.IptcPackage.EnvelopeRecord.FileFormat);
Console.WriteLine(root.IptcPackage.EnvelopeRecord.FileFormatVersion);
// ...
}
if (root.IptcPackage.ApplicationRecord != null)
{
Console.WriteLine(root.IptcPackage.ApplicationRecord.Headline);
Console.WriteLine(root.IptcPackage.ApplicationRecord.ByLine);
Console.WriteLine(root.IptcPackage.ApplicationRecord.ByLineTitle);
Console.WriteLine(root.IptcPackage.ApplicationRecord.CaptionAbstract);
Console.WriteLine(root.IptcPackage.ApplicationRecord.City);
Console.WriteLine(root.IptcPackage.ApplicationRecord.DateCreated);
Console.WriteLine(root.IptcPackage.ApplicationRecord.ReleaseDate);
// ...
}
}
}
- namespace GroupDocs.Metadata.Standards.Iptc
- assembly GroupDocs.Metadata
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.