PdfXmpMetadata

Vue de l’ensemble

‘PdfXmpMetadata’ est une classe dans Aspose.PDF FOSS pour Java.Déduit de: Closeable.

Faisez un petit compte sur {@link Document#getMetadata()}, en miroir { @code Aspose.Pdf.Facades.FdfXmpMetiadata}.

Cette classe fournit 16 méthodes pour travailler avec des objets de métadonnées PdfXmp dans les programmes Java. Les méthodologies disponibles comprennent: PdfxmpMetadata, add , bindPDF ; ‘close; contains : get et getDocument . tous les membres publics sont accessibles à n’importe quelle application Java après l’installation de l’Aspose.PDF FOSS pour le package Java . Propriétés : `document‘, ’xMPMETadata‘.

Propriétés

NameTypeAccessDescription
documentDocumentReadReturns the bound document, or {@code null}.
xmpMetadataXmpMetadataReadReturns the {@link XmpMetadata} of the bound document.

méthodes

SignatureDescription
PdfXmpMetadata()Empty PdfXmpMetadata.
PdfXmpMetadata(inputFile: String)Bound to {@code inputFile}.
PdfXmpMetadata(document: Document)Bound to an already-loaded document.
getDocument()DocumentReturns the bound document, or {@code null}.
bindPdf(inputFile: String)booleanLoads a fresh {@link Document} from {@code inputFile}.
bindPdf(inputStream: InputStream)booleanLoads a fresh {@link Document} from {@code inputStream}.
bindPdf(document: Document)booleanBinds an already-loaded document.
getXmpMetadata()XmpMetadataReturns the {@link XmpMetadata} of the bound document.
contains(key: String)booleanReturns whether the XMP bag contains a property with the given key.
get(key: String)XmpValueReturns the property value for {@code key}, or {@code null} when absent.
add(key: String, value: String)Adds (or replaces) a string property under {@code key}.
add(key: String, value: XmpValue)Adds (or replaces) a typed property under {@code key}.
set(key: String, value: String)Sets a string property under {@code key} (replace semantics).
remove(key: String)Removes the property under {@code key}, if present.
save(outputFile: String)booleanSaves the bound document to {@code outputFile}.
close()

Voir aussi

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