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
| Name | Type | Access | Description |
|---|---|---|---|
document | Document | Read | Returns the bound document, or {@code null}. |
xmpMetadata | XmpMetadata | Read | Returns the {@link XmpMetadata} of the bound document. |
méthodes
| Signature | Description |
|---|---|
PdfXmpMetadata() | Empty PdfXmpMetadata. |
PdfXmpMetadata(inputFile: String) | Bound to {@code inputFile}. |
PdfXmpMetadata(document: Document) | Bound to an already-loaded document. |
getDocument() → Document | Returns the bound document, or {@code null}. |
bindPdf(inputFile: String) → boolean | Loads a fresh {@link Document} from {@code inputFile}. |
bindPdf(inputStream: InputStream) → boolean | Loads a fresh {@link Document} from {@code inputStream}. |
bindPdf(document: Document) → boolean | Binds an already-loaded document. |
getXmpMetadata() → XmpMetadata | Returns the {@link XmpMetadata} of the bound document. |
contains(key: String) → boolean | Returns whether the XMP bag contains a property with the given key. |
get(key: String) → XmpValue | Returns 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) → boolean | Saves the bound document to {@code outputFile}. |
close() |
Voir aussi
- Aspose.PDF pour Java — API d’entreprise