Logout Developer Knowledgebase Search Adobe Partners Main Adobe Solution Partner Finder Adobe Solution Partner Program Support Developer Knowledgebase Adobe Solution Partner Program Products & Technology Adobe
Developer Knowledgebase

Knowledgebase HomeInCopy KB

Overview
Software Development Kits
Developer Knowledgebase
Support
Legal Notices
Feedback
Adobe Solution Partner Program
Join
Find a Solution Partner

Product
InCopy
 
Version
2.0
 
Last Edited
03-Mar-2006
 
Document
54215

How To: Changing XMP Metadata

Summary
InDesign CS2 XMP metadata is stored on a metadata object associated with the document. InCopy CS2 XMP metadata is stored on a metadata object associated with each story.

In InDesign the XMP metadata is stored on a metadata object associated with the document. However, in InCopy each story in the document has a separate instance of metadata which may be changed separately.
ErrorCode AppendMetaDataInDesign( IDocument* document, IDFile* theNewData )
{
InterfacePtr<ICommand> appendCmd(CmdUtils::CreateCommand(kAppendMetaDataCmdBoss));

InterfacePtr<IAppendMetaDataCmdData> cmdData(appendCmd, UseDefaultIID());
cmdData->Set( document,theNewData,kTrue );
ErrorCode cmdErr = CmdUtils::ProcessCommand(appendCmd);

return cmdErr;
}


ErrorCode AppendMetaDataInCopy( ITextModel* story, IDFile* theNewData )
{
// get the metadata object's UID from this text model
InterfacePtr<IPersistUIDData> uidData( story,IID_IMETADATAUIDDATA );
InterfacePtr<IMetaData> iMetaData( ::GetDataBase(story),uidData->GetUID(),UseDefaultIID() );

InterfacePtr<ICommand> appendCmd(CmdUtils::CreateCommand(kAppendMetaDataCmdBoss));

InterfacePtr<IAppendMetaDataCmdData> cmdData(appendCmd,UseDefaultIID());
cmdData->Set( iMetaData,theNewData,kTrue );
ErrorCode cmdErr = CmdUtils::ProcessCommand(appendCmd);

return cmdErr;
}

back to top
Was this Knowledgebase document helpful? Yes  No
The articles in this knowledgebase are intended for use by software programmers currently using an Adobe SDK to extend or customize an Adobe product. These articles may be highly technical in nature.
If you have questions about an Adobe Product that are not related to development or an SDK product please visit: http://adobe.com/support/main.html
Copyright © Adobe Systems Incorporated. All rights reserved.
Terms of Use
Online Privacy Policy