Skip navigation
Currently Being Moderated

IDHostAdapter.getInstance().getXMPString(doc); returns null

Nov 4, 2011 11:24 AM

Hi,

I'm trying to read and modify XMP data of a document, but i allways get a null value when reading it.

Also,

IDHostAdapter.getInstance().setXMPString(doc, updatedXMPString);

doesn't work either;

 

 

  var app:Application = InDesign.app;

                              var doc:Document = app.activeDocument;

                              var idh:IDHostAdapter = IDHostAdapter.getInstance();

                              var xmpString:String = idh.getXMPString(doc);

 

                              var warpxmpContext:WARPXMPXMPContext = new WARPXMPXMPContext(xmpString);

                              warpxmpContext.wARPXMP.publicacion = "periodico";

                              var updatedXMPString:String =warpxmpContext.serializeToXML();

                              IDHostAdapter.getInstance().setXMPString(doc, updatedXMPString);

                              var xmpString2:String = IDHostAdapter.getInstance().getXMPString(doc);

 

 

Any ideas?

 

Thanks

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points