1 person found this helpful
I've never used IDHostAdapter.getXMPString() or IDHostAdapter.setXMPString()
I would use Document.metadataPreferences instead...
We have an updated version of the InDesign Host Adapter library available for download:
In terms of examples, please look at the AssetFragger CS extension example which shows adding/modifying XMP metadata using XMP Namespace Designer and InDesign Host Adapter library. This extension is available in CS Extension Builder under File > Import > CS Extension Builder > Samples. For further information, please refer to http://www.adobe.com/devnet/creativesuite/samples.html
Reply-To: "firstname.lastname@example.org<mailto:email@example.com>" <firstname.lastname@example.org<mailto:email@example.com>>
Date: Sat, 5 Nov 2011 19:45:40 +0000
Re: IDHostAdapter.getInstance().getXMPString(doc); returns null
That's what I'm using in my project
But we have a legacy xmp structure that I couldn't replicate with Doc.metadaPreferences.setProperty
Also It has it's own namespace
I ended writing the xmp to a file and then loading it with doc.metadataPreferences.append
Im looking forward to use the IdHostAdapter to manipulate the xmp directly
Thanks for your answer.
I notice that this plugin has the same version number (7.0.0) that the one I have, but the size is different
I'll try it and I'll let you know
Didn't work... I still get "null"...
I tested it with the AssetFragger Example
I'm not sure why that was a problem.
You can use any namespace you want with the getProperty() and setProperty() methods.
I've done this with no issues...
I couldn't create a new namespace...
And the structure had nested "seq" elements
I didn't find a way to do this with setProperty and/or createContainer
Do you have the updated version of the IdHostAdapter plugin for InDesign CS5 (7.0)
The one I downloaded from the link you provided works fine with CS5.5, but CS5 cannot load it.
The native component of the IDHostAdapter only works with CS5.5. We do not offer an equivalent for CS5.
However, please note that this does not affect the events feature which will work in both CS5 and CS5.5.