XmpMetadataHandler

XmpMetadataHandler

Vue de l’ensemble

‘XmpMetadataHandler’ est une classe dans Aspose.PDF FOSS pour Java.

Il lit et écrit des paquets de métadonnées XMP pour la conformité PDF/A.

Cette classe fournit 9 méthodes pour travailler avec XmpMetadataHandler objets dans les programmes Java. Les méthodologies disponibles comprennent: buildXmpPacket, createXMPBytes , ‘getAllProperties;getPdfAConformance; getPdFAPart : 'getsProperty: ‘hasPddAId. pdfDateToXpDat . readFromCatalogTous les membres publics sont accessibles à toute application Java après l'installation de l’Aspose.PDF FOSS pour le package Java . Propriétés :allPropertys et pdfACconformance‘ : PDFAPART

Propriétés

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.

méthodes

SignatureDescription
readFromCatalog(catalog: PdfDictionary)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.

Voir aussi

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