XmpMetadata

Vue de l’ensemble

‘XmpMetadata’ est une classe dans Aspose.PDF FOSS pour Java. Il se trouve à partir de: ‘Iterable<Map.Entry<String’, ‘xmpValue»’.

Il fournit l’accès aux métadonnées XMP d’un document PDF (ISO 32000-1 §14.3.2, ISO 16684-1).

Cette classe fournit 19 méthodes pour travailler avec des objets XmpMetadata dans les programmes Java. Les méthodologies disponibles comprennent: ‘Xmpmetdata’, ‘add’ , ‘contains’, get', ‘getBytes', ’getKeys’, 'getNamespaceUriByPrefix', ''getPrefixBYNAMespace Uri', ‚getProperties, ‘gettRegistry,isDirty et 3 méthode supplémentaires. Tous les membres publics sont accessibles à toute application Java après l'installation de l’Aspose.PDF FOSS pour le package Java . Propriétés : 'bytes ; ‘dirty ́, keys; ‘propriété`.

Propriétés

NameTypeAccessDescription
keysjava.util.Collection<String>ReadReturns all property keys.
bytesbyte[]ReadReturns the full XMP XML as UTF-8 bytes.
dirtybooleanReadReturns true if properties have been modified since parsing.
registryXmpNamespaceRegistryReadReturns the internal namespace registry.
propertiesMap<String, XmpProperty>ReadReturns the internal properties map (for serialization by Document).

méthodes

SignatureDescription
XmpMetadata()Creates empty XMP metadata.
XmpMetadata(xmpBytes: byte[])Creates XMP metadata from raw XML bytes.
get(key: String)XmpValueReturns the value for the given key, or null if not present.
contains(key: String)booleanReturns true if the given key is present.
getKeys()java.util.Collection<String>Returns all property keys.
set(key: String, value: XmpValue)Sets a property value.
set(key: String, value: String)Sets a property value from a string.
add(key: String, value: XmpValue)Adds a property value.
add(key: String, value: String)Adds a property value from a string.
remove(key: String)Removes a property.
registerNamespaceUri(prefix: String, namespaceUri: String)Registers a custom namespace prefix-URI mapping.
registerNamespaceUri(prefix: String, namespaceUri: String, schemaDescription: String)Registers a custom namespace with description.
getNamespaceUriByPrefix(prefix: String)StringReturns the namespace URI for a prefix.
getPrefixByNamespaceUri(namespaceUri: String)StringReturns the prefix for a namespace URI.
getBytes()byte[]Returns the full XMP XML as UTF-8 bytes.
iterator()Iterator<Map.Entry<String, XmpValue>>Returns an iterator over all key-value pairs.
isDirty()booleanReturns true if properties have been modified since parsing.
getRegistry()XmpNamespaceRegistryReturns the internal namespace registry.
getProperties()Map<String, XmpProperty>Returns the internal properties map (for serialization by Document).

Voir aussi

  • Aspose.PDF pour Java — API d’entreprise
 Français