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

InDesign crashing while trying to place Image

Explorer ,
Mar 17, 2021 Mar 17, 2021

Copy link to clipboard

Copied

Hello all,

I am trying to place the image in InDesign doucment by using the below Command Utils<Facade::IImportExportFacade> iFacade;

ErrorCode result = iFacade->ImportAndLoadPlaceGun(m_docUIDRef.GetDataBase(), uri, kSuppressUI, kTrue, kTrue, kTrue, kTrue, IPlaceGun::kAddToBack);
if (result != kSuccess)
{

break;
}

If the Image is corrupted the process breaks from the above command and exits the function properly, but crashes indesign on the execution of the next command in the code. For example creating new frame or getting creating new layer, InDesign plugin crashes.

 

The reference of this code is taken from AddMediaFile snippet file. Somehow in the SnippetRunner Proj the file is getting handled properly returning an error.

 

Has anyone faced this kind of issue. I am working on ID CC 2019 currently.

 

Thanks all in Advance.

Regards

Farzana.

TOPICS
SDK

Views

206

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

correct answers 1 Correct answer

Explorer , Mar 24, 2021 Mar 24, 2021

Hello,

Thanks for the reply but we changed the code of placing the image through Javascript and it seems to be working fine till now. 

But in case required will definitely let you know. Thanks.once again.

 

Regards

Farzana.

Votes

Translate

Translate
Explorer ,
Mar 24, 2021 Mar 24, 2021

Copy link to clipboard

Copied

LATEST

Hello,

Thanks for the reply but we changed the code of placing the image through Javascript and it seems to be working fine till now. 

But in case required will definitely let you know. Thanks.once again.

 

Regards

Farzana.

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