TiffRootPackage
Leave feedback
On this page
Inheritance: java.lang.Object, com.groupdocs.metadata.core.MetadataPackage, com.groupdocs.metadata.core.RootMetadataPackage, com.groupdocs.metadata.core.ImageRootPackage
All Implemented Interfaces: com.groupdocs.metadata.core.IXmp, com.groupdocs.metadata.core.IExif, com.groupdocs.metadata.core.IIptc
public class TiffRootPackage extends ImageRootPackage implements IXmp, IExif, IIptc
Represents the root package allowing working with metadata in a TIFF image.
Learn more
- Working with metadata in TIFF images
- Working with EXIF metadata
- Working with XMP metadata
- Working with IPTC IIM metadata
This example shows how to extract basic IPTC metadata properties from a TIFF image.
try (Metadata metadata = new Metadata(Constants.TiffWithIptc)) { TiffRootPackage root = metadata.getRootPackageGeneric(); if (root.getIptcPackage() != null) { if (root.getIptcPackage().getEnvelopeRecord() != null) { System.out.println(root.getIptcPackage().getEnvelopeRecord().getDateSent()); System.out.println(root.getIptcPackage().getEnvelopeRecord().getDestination()); System.out.println(root.getIptcPackage().getEnvelopeRecord().getFileFormat()); System.out.println(root.getIptcPackage().getEnvelopeRecord().getFileFormatVersion()); // … } if (root.getIptcPackage().getApplicationRecord() != null) { System.out.println(root.getIptcPackage().getApplicationRecord().getHeadline()); System.out.println(root.getIptcPackage().getApplicationRecord().getByLine()); System.out.println(root.getIptcPackage().getApplicationRecord().getByLineTitle()); System.out.println(root.getIptcPackage().getApplicationRecord().getCaptionAbstract()); System.out.println(root.getIptcPackage().getApplicationRecord().getCity()); System.out.println(root.getIptcPackage().getApplicationRecord().getDateCreated()); System.out.println(root.getIptcPackage().getApplicationRecord().getReleaseDate()); // … } } }
| Method | Description |
|---|---|
| getXmpPackage() | Gets the XMP metadata package. |
| setXmpPackage(XmpPacketWrapper value) | Sets the XMP metadata package. |
| getExifPackage() | Gets the EXIF metadata package. |
| setExifPackage(ExifPackage value) | Sets the EXIF metadata package. |
| getIptcPackage() | Gets the IPTC metadata package. |
| setIptcPackage(IptcRecordSet value) | Sets the IPTC metadata package. |
public final XmpPacketWrapper getXmpPackage()
Gets the XMP metadata package.
Returns: XmpPacketWrapper - The XMP metadata package.
Learn more
public final void setXmpPackage(XmpPacketWrapper value)
Sets the XMP metadata package.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | XmpPacketWrapper | The XMP metadata package. |
Learn more
Working with XMP metadata: https://docs.groupdocs.com/display/metadatajava/Working+with+XMP+metadata |
public final ExifPackage getExifPackage()
Gets the EXIF metadata package.
Returns: ExifPackage - The EXIF metadata package.
Learn more
public final void setExifPackage(ExifPackage value)
Sets the EXIF metadata package.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | ExifPackage | The EXIF metadata package. |
Learn more
Working with EXIF metadata: https://docs.groupdocs.com/display/metadatajava/Working+with+EXIF+metadata |
public final IptcRecordSet getIptcPackage()
Gets the IPTC metadata package.
Returns: IptcRecordSet - The IPTC metadata package.
Learn more
public final void setIptcPackage(IptcRecordSet value)
Sets the IPTC metadata package.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | IptcRecordSet | The IPTC metadata package. |
Learn more
Working with IPTC IIM metadata: https://docs.groupdocs.com/display/metadatajava/Working+with+IPTC+IIM+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.