Creates an XmpArray instance from an integer array.
deffrom_(cls,array,type):...
Parameter
Type
Description
array
list[int]
The array to create an XmpArray from.
type
XmpArrayType
The type of the XmpArray.
Returns: An XmpArray containing all the elements from the original array.
Example
fromgroupdocs.metadata.standards.xmpimportXmpArray,XmpArrayType# Create an ordered XMP array from a list of stringscompany_array=XmpArray.from_(["Aspose","GroupDocs"],XmpArrayType.ORDERED)
from_
Creates an XmpArray instance from a date array.
deffrom_(cls,array,type):...
Parameter
Type
Description
array
list[datetime]
The array to create an XmpArray from.
type
XmpArrayType
The type of the XmpArray.
Returns: XmpArray: An XmpArray containing all the elements from the original array.
Returns: XmpArray: An XmpArray containing all the elements from the original list.
Example
fromgroupdocs.metadata.standards.xmpimportXmpArray,XmpArrayType# Create an ordered XMP array from a list of stringscompany_array=XmpArray.from_(["Aspose","GroupDocs"],XmpArrayType.ORDERED)