Get XMP Metadata from PDF File in Python

Contents
[ ]

To get XMP Metadata from Pdf document using Aspose.PDF Java for Python, simply invoke GetXMPMetadata class.

Python Code


doc= self.Document()
pdf = self.Document()
pdf=self.dataDir + 'input1.pdf'

# Get properties
print "xmp:CreateDate: " + str(doc.getMetadata().get_Item("xmp:CreateDate"))
print "xmp:Nickname: " + str(doc.getMetadata().get_Item("xmp:Nickname"))
print "xmp:CustomProperty: " + str(doc.getMetadata().get_Item("xmp:CustomProperty"))

Download Running Code

Download Get XMP Metadata (Aspose.PDF) from any of the below mentioned social coding sites: