Skip navigation
Home/Support/

Forums

920 Views 8 Replies Latest reply: Feb 2, 2012 3:17 AM by lesavage RSS
nandillo User 6 posts since
Sep 23, 2011
Currently Being Moderated

Nov 4, 2011 12:24 PM

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

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

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points