Skip to main content
Participant
June 8, 2023
Question

cannot paste in place at the the same position use copy command via indesign sdk

  • June 8, 2023
  • 1 reply
  • 182 views

Hi,

I have  a page as facing pages.

Then I create a page and the setting like below

 

then copy the page items above and paste it by below script:

InterfacePtr<ICommand> copyCmd(CmdUtils::CreateCommand(kCopyCmdBoss));
if (!copyCmd)
break;

InterfacePtr<ICopyCmdData> copyCmdData(copyCmd, IID_ICOPYCMDDATA);
if (!copyCmdData)
break;
copyCmdData->Set(
copyCmd,
new UIDList(frames),
parentUIDRef,
dataExchangeHandler
);
status = CmdUtils::ProcessCommand(copyCmd);

 

But seems it pasted position is not correct, The expected postion should in still in the page but not part of it on the paste board.

 

Thanks

Jack

 

 

 

This topic has been closed for replies.

1 reply

Participant
June 8, 2023

This is the new page screenshot after pasting.