InDesign link update with new path through c++ plugin
Hi Everyone,
I need to set the new link path of image and update the link. But my code update the link path and it shows the Yellow highlighted modified icon in links panel. I shown my code in below.
InterfacePtr<ILinkResourceStateUpdateCmdData> cmdData(cmd, UseDefaultIID());
cmdData->SetResource(*iter);
cmdData->SetDatabase(iDatabase);
cmdData->SetNotify(true);
cmdData->SetUpdateAction(ILinkResourceStateUpdateCmdData::kUpdateURI);
cmdData->SetURI(newURI);
cmdData->SetDatabaseModified(kTrue);
The issue is, the new link path is updated. But the image thumbnail not changed.
Could anyone reply me If I did anything wrong?
Thanks.
