XmpPacketWrapper Class |
Namespace: GroupDocs.Metadata.Standards.Xmp
The XmpPacketWrapper type exposes the following members.
Name | Description | |
---|---|---|
![]() | XmpPacketWrapper |
Initializes a new instance of the XmpPacketWrapper class.
|
![]() | XmpPacketWrapper(XmpHeaderPI, XmpTrailerPI, XmpMeta) |
Initializes a new instance of the XmpPacketWrapper class.
|
Name | Description | |
---|---|---|
![]() | Count |
Gets the number of metadata properties.
(Inherited from MetadataPackage.) |
![]() | HeaderPI |
Gets or sets the header processing instruction.
|
![]() | Item |
Gets the MetadataProperty with the specified name.
(Inherited from MetadataPackage.) |
![]() | Keys |
Gets a collection of the metadata property names.
(Inherited from MetadataPackage.) |
![]() | KnowPropertyDescriptors | Obsolete.
Gets a collection of descriptors that contain information about properties accessible through the GroupDocs.Metadata search engine.
(Inherited from MetadataPackage.) |
![]() | Meta |
Gets or sets the XMP meta.
|
![]() | MetadataType |
Gets the metadata type.
(Inherited from MetadataPackage.) |
![]() | PackageCount |
Gets the number of packages inside the XMP structure.
|
![]() | Packages |
Gets array of XmpPackage inside XMP.
|
![]() | PropertyDescriptors |
Gets a collection of descriptors that contain information about properties accessible through the GroupDocs.Metadata search engine.
(Inherited from MetadataPackage.) |
![]() | Schemes |
Provides access to known XMP schemas.
|
![]() | TrailerPI |
Gets or sets the trailer processing instruction.
|
Name | Description | |
---|---|---|
![]() ![]() | AddPackage |
Adds the package.
|
![]() | AddProperties |
Adds known metadata properties satisfying the specified predicate.
The operation is recursive so it affects all nested packages as well.
(Inherited from MetadataPackage.) |
![]() | ClearPackages |
Removes all XmpPackage inside XMP.
|
![]() | Contains |
Determines whether the package contains a metadata property with the specified name.
(Inherited from MetadataPackage.) |
![]() | ContainsPackage |
Determines whether package is exist in XMP wrapper.
|
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() | FindProperties |
Finds the metadata properties satisfying the specified predicate.
The search is recursive so it affects all nested packages as well.
(Inherited from MetadataPackage.) |
![]() | GetEnumerator |
Returns an enumerator that iterates through the collection.
(Inherited from MetadataPackage.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetPackage |
Gets package by namespace uri.
|
![]() | GetType | (Inherited from Object.) |
![]() | GetXmpRepresentation |
Returns string contained value in XMP format.
|
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | RemovePackage |
Removes the specified package.
|
![]() | RemoveProperties |
Removes metadata properties satisfying the specified predicate.
(Inherited from MetadataPackage.) |
![]() | Sanitize |
Removes writable metadata properties from the package.
The operation is recursive so it affects all nested packages as well.
(Inherited from MetadataPackage.) |
![]() | SetProperties |
Sets known metadata properties satisfying the specified predicate.
The operation is recursive so it affects all nested packages as well.
This method is a combination of AddProperties(FuncMetadataProperty, Boolean, PropertyValue) and UpdateProperties(FuncMetadataProperty, Boolean, PropertyValue).
If an existing property satisfies the predicate its value is updated.
If there is a known property missing in the package that satisfies the predicate it is added to the package.
(Inherited from MetadataPackage.) |
![]() | ToString | (Inherited from Object.) |
![]() | UpdateProperties |
Updates known metadata properties satisfying the specified predicate.
The operation is recursive so it affects all nested packages as well.
(Inherited from MetadataPackage.) |
using (Metadata metadata = new Metadata(Constants.GifWithXmp)) { IXmp root = metadata.GetRootPackage() as IXmp; if (root != null && root.XmpPackage != null) { // if there is no such scheme in the XMP package we should create it if (root.XmpPackage.Schemes.DublinCore == null) { root.XmpPackage.Schemes.DublinCore = new XmpDublinCorePackage(); } root.XmpPackage.Schemes.DublinCore.Format = "image/gif"; root.XmpPackage.Schemes.DublinCore.SetRights("Copyright (C) 2011-2021 GroupDocs. All Rights Reserved"); root.XmpPackage.Schemes.DublinCore.SetSubject("test"); if (root.XmpPackage.Schemes.CameraRaw == null) { root.XmpPackage.Schemes.CameraRaw = new XmpCameraRawPackage(); } root.XmpPackage.Schemes.CameraRaw.Shadows = 50; root.XmpPackage.Schemes.CameraRaw.AutoBrightness = true; root.XmpPackage.Schemes.CameraRaw.AutoExposure = true; root.XmpPackage.Schemes.CameraRaw.CameraProfile = "test"; root.XmpPackage.Schemes.CameraRaw.Exposure = 0.0001; // If you don't want to keep the old values just replace the whole scheme root.XmpPackage.Schemes.XmpBasic = new XmpBasicPackage(); root.XmpPackage.Schemes.XmpBasic.CreateDate = DateTime.Today; root.XmpPackage.Schemes.XmpBasic.BaseUrl = "https://groupdocs.com"; root.XmpPackage.Schemes.XmpBasic.Rating = 5; root.XmpPackage.Schemes.BasicJobTicket = new XmpBasicJobTicketPackage(); // Set a complex type property root.XmpPackage.Schemes.BasicJobTicket.Jobs = new[] { new XmpJob { ID = "1", Name = "test job", Url = "https://groupdocs.com" }, }; // ... metadata.Save(Constants.OutputGif); } }