Here is the code I am using as first stem in an effort to manipulate xmp data in ai file.
const char *xmpin=0;
char *xmpout=new char[xmpBufSize];
xmpin is ok, gets xmp data from current document. Looks like no errors thrown, am not getting any output. xmpBufSize is always zero and xmpout is empty. Help please!
BTW, the doc says the above xmp apis are deprecated. But still it should work, right?
CreateXMPSession is failing. Any idea?
Looks like xmpsession related apis don't work - according to doc, they are deprecated. But GetDocumentXAP and SetDocumentXAP works. So we can modify xmp data using third party xml parsing library, then save it back. no need of xmpsession apis.