• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
1

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

New Here ,
Jun 08, 2023 Jun 08, 2023

Copy link to clipboard

Copied

Hi,

I have  a page as facing pages.

jack23096597gc0i_0-1686215698008.png

Then I create a page and the setting like below

jack23096597gc0i_2-1686215914626.png

 

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

 

 

 

TOPICS
SDK

Views

114

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 08, 2023 Jun 08, 2023

Copy link to clipboard

Copied

LATEST

jack23096597gc0i_0-1686216069403.png

This is the new page screenshot after pasting.

 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines