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.
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.
Copy link to clipboard
Copied
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.