Skip to main content
NooZ
Participating Frequently
June 4, 2021
Question

how to set all images as artifacts without doing one by one

  • June 4, 2021
  • 2 replies
  • 1183 views

what is the best way to convert all objects with images as artifacts ...without oding it one by one

This topic has been closed for replies.

2 replies

Community Expert
June 4, 2021

Hi NooZ,

do you already see a way?

Can you show some code, so that we can discuss efficiency?

 

I'd do it by looping the allGraphics array of a document.

For the parent of every individual graphic there I would set property applyTagType of the objectExportOptions and apply value TagType.TAG_ARTIFACT.

 

DOM documentation by Gregor Fellenz:

https://www.indesignjs.de/extendscriptAPI/indesign-latest/#ObjectExportOption.html#d1e330383

 

Thanks,
Uwe Laubender

( ACP )

NooZ
NooZAuthor
Participating Frequently
June 6, 2021

My dev skills are very limited i wish a script can solve it but i don't know how to write it

hammer0909
Community Expert
Community Expert
June 4, 2021

Your best bet would be to create an Object Style with the artifact property set in the Object style with no other properties defined. Now you can apply the object style to any images that you want artifacted very easily. Another option is to use the Articles panel. Any images not added to the Articles panel will automatically be artifacted by default.