XmpPacketWrapper Class

Summary: Contains serialized xmp package including header and trailer.

Module: aspose.imaging.xmp

Full Name: aspose.imaging.xmp.XmpPacketWrapper

Aspose.Imaging Version: 24.5.0

Constructors

NameDescription
XmpPacketWrapper()Initializes a new instance of the XmpPacketWrapper class.
XmpPacketWrapper(header, trailer, xmp_meta)Initializes a new instance of the XmpPacketWrapper class.

Properties

NameTypeAccessDescription
header_piXmpHeaderPirGets the header processing instruction.
metaXmpMetar/wGets the XMP meta. Optional.
packagesXmpPackage[]rGets array of XmpPackage inside XMP.
packages_countintrGets amount of packages inside XMP structure.
trailer_piXmpTrailerPirGets the trailer processing instruction.

Methods

NameDescription
add_package(package)Adds the package.
clear_packages()Removes all XmpPackage inside XMP.
contains_package(namespace_uri)Determines whethere package is exist in xmp wrapper.
get_package(namespace_uri)Gets package by namespace URI.
remove_package(package)Removes the XMP package.

Constructor: XmpPacketWrapper()

 XmpPacketWrapper() 

Initializes a new instance of the XmpPacketWrapper class.

Constructor: XmpPacketWrapper(header, trailer, xmp_meta)

 XmpPacketWrapper(header, trailer, xmp_meta) 

Initializes a new instance of the XmpPacketWrapper class.

Parameters:

ParameterTypeDescription
headerXmpHeaderPiThe XMP header of processing instruction.
trailerXmpTrailerPiThe XMP trailer of processing instruction.
xmp_metaXmpMetaThe XMP metadata.

Method: add_package(package)

 add_package(package) 

Adds the package.

Parameters:

ParameterTypeDescription
packageXmpPackageThe package.

Method: contains_package(namespace_uri)

 contains_package(namespace_uri) 

Determines whethere package is exist in xmp wrapper.

Parameters:

ParameterTypeDescription
namespace_uristringPackage schema uri.

Returns

TypeDescription
boolReturns true if package with specified namespace Uri exist in XMP wrapper.

Method: get_package(namespace_uri)

 get_package(namespace_uri) 

Gets package by namespace URI.

Parameters:

ParameterTypeDescription
namespace_uristringThe package schema URI.

Returns

TypeDescription
XmpPackageReturns the XMP package for specified namespace URI.

Method: remove_package(package)

 remove_package(package) 

Removes the XMP package.

Parameters:

ParameterTypeDescription
packageXmpPackageThe package.