Get XMP Metadata from PDF File in PHP
Contents
[
Hide
]
Aspose.PDF - Get XMP Metadata
To get XMP Metadata from Pdf document using Aspose.PDF Java for PHP, simply invoke GetXMPMetadata class.
PHP Code
# Open a pdf document.
$doc = new Document($dataDir . "input1.pdf");
# Get properties
print "xmp:CreateDate: " + $doc->getMetadata()->get_Item("xmp:CreateDate") . PHP_EOL;
print "xmp:Nickname: " + $doc->getMetadata()->get_Item("xmp:Nickname") . PHP_EOL;
print "xmp:CustomProperty: " + $doc->getMetadata()->get_Item("xmp:CustomProperty") . PHP_EOL;
Download Running Code
Download Get XMP Metadata (Aspose.PDF) from any of the below mentioned social coding sites: