Chilkat HOME ASP Visual Basic VB.NET C# Visual C++ C MFC Delphi FoxPro Java Perl PHP Python Ruby SQL Server VBScript
Fetch XMP String Property ValuesFetch simple string properties from XMP.
import sys import chilkat xmp = chilkat.CkXmp() success = xmp.UnlockComponent("Anything for 30-day trial") if (success == False): print "Failed to unlock component" sys.exit() success = xmp.LoadAppFile("xmpExample.jpg") if (success == False): print xmp.lastErrorText() sys.exit() # How many XMP docs are embedded? if (xmp.get_NumEmbedded() == 0): print "No XMP metdata found!" sys.exit() # Get the 1st (and usually only) XMP document: xml = xmp.GetEmbedded(0) # Fetch and display some simple properties: propVal = xmp.getSimpleStr(xml,"Iptc4xmpCore:Location") print propVal propVal = xmp.getSimpleStr(xml,"Iptc4xmpCore:CountryCode") print propVal |
Need a specific example? Send a request to support@chilkatsoft.com
© 2000-2008 Chilkat Software, Inc. All Rights Reserved.