PdfXmpMetadata
Overview
PdfXmpMetadata is a class in Aspose.PDF FOSS for Python.
Inherits from: _BoundFacade.
The document’s XMP packet, read and written by prefix and name.
This class declares 4 methods for PdfXmpMetadata objects in Python programs.
Available methods include: get_value, set_value, sync_from_info, sync_to_info.
Public members are accessible to any Python application after installing the Aspose.PDF FOSS for Python package.
Properties: packet.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
packet | Any | Read | The :class:~aspose_pdf.xmp.XmpPacket itself. |
Methods
| Signature | Description |
|---|---|
get_value(prefix: str, name: str, default: Any) → Any | One XMP property’s value, by namespace prefix (or URI) and name. |
set_value(prefix: str, name: str, value: Any, uri: str) | Set one XMP property, and write the packet back to the document. |
sync_from_info() | Copy the /Info entries into the XMP packet (Document.sync_metadata). |
sync_to_info() | Copy the XMP packet’s values into the /Info dictionary. |