PdfXmpMetadata

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

NameTypeAccessDescription
packetAnyReadThe :class:~aspose_pdf.xmp.XmpPacket itself.

Methods

SignatureDescription
get_value(prefix: str, name: str, default: Any) → AnyOne 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.

See Also