XmpMetadataHandler

XmpMetadataHandler

Overview

XmpMetadataHandler is a class in Aspose.Pdf FOSS for Java.

Reads and writes XMP metadata packets for PDF/A compliance.

Properties

NameTypeAccessDescription
allPropertiesMap<String, String>ReadReturns an unmodifiable map of all parsed properties.
pdfAPartintReadReturns the PDF/A part number from the XMP metadata, or 0 if not present.
pdfAConformanceStringReadReturns the PDF/A conformance level from the XMP metadata, or {@code null} if not present.

Methods

SignatureDescription
readFromCatalog(catalog: COSDictionary)XmpMetadataHandlerReads XMP metadata from a PDF catalog dictionary.
createXmpBytes(properties: Map<String, String>, pdfaPart: int, pdfaConformance: String)byte[]Creates an XMP metadata byte array suitable for embedding in a PDF stream.
getProperty(namespace: String, name: String)StringReturns a property value by namespace URI and local name.
getAllProperties()Map<String, String>Returns an unmodifiable map of all parsed properties.
hasPdfAId()booleanReturns {@code true} if the XMP metadata contains a {@code pdfaid:part} property.
getPdfAPart()intReturns the PDF/A part number from the XMP metadata, or 0 if not present.
getPdfAConformance()StringReturns the PDF/A conformance level from the XMP metadata, or {@code null} if not present.
pdfDateToXmpDate(pdfDate: String)StringConverts a PDF date string to XMP date format.
buildXmpPacket(dcTitle: String, dcCreator: String, dcDescription: String, pdfKeywords: String, xmpCreatorTool: String, pdfProducer: String, xmpCreateDate: String, xmpModifyDate: String, pdfaPart: int, pdfaConformance: String)byte[]Builds a complete XMP packet with all standard namespaces for PDF/A compliance.

See Also