Replacing Image in a Graphic Frame


hi,

 

i have tagged graphic frame , trying replace image without loosing link tag.....


i have tried using hierachy remove image works - loose link tag:

 

interfaceptr<igraphicframedata> graphicframe(ref, usedefaultiid());

interfaceptr<ihierarchy> graphicframehierarchy(graphicframe, usedefaultiid());

interfaceptr<ihierarchy> childhierarchy(graphicframehierarchy->querychild(0));

graphicframehierarchy->remove(childhierarchy);

 

 

i have managed in extended script has worked using links.

 

var vlinks = mydoc.links;

var link = vlinks.itembyname("hydrangeas.jpg");

link.relink(new file("c:/users/public/pictures/sample pictures/koala.jpg"));

 

any ideas?

 

thanks


nathan deamer

 

 

*i have tried retagging image after deleting , replacing graphic.  due how set can't tag frame when in group inside text frame.....

look at  utils<facade::ilinkfacade>()->relinklink()



More discussions in InDesign SDK


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support