Copy link to clipboard
Copied
Hello ! Having a lot of files coming from our client with anchored objects, can we please have an option to delete it even in the "inline or above line objects" mode ? (cut and paste it is not a great solution as it doesn't stay at the same place as it was)
Would save so much time to so many people !!!
Copy link to clipboard
Copied
Right-click on the Anchored object, then choose Achored Object/Release.
Copy link to clipboard
Copied
Marc Autret wrote a script that will release all anchored objects in your document. Read this thread: https://community.adobe.com/t5/indesign-discussions/release-all-anchored-objects-at-once/m-p/380794...
Copy link to clipboard
Copied
So you don't want to delete them permanently - but release / unanchor?
Copy link to clipboard
Copied
Hi @Anne35404369uvu5 ,
to remove (delete) all anchored objects in a document could be done with one line of code in ExtendScript (JavaScript):
app.documents[0].stories.everyItem().texts.everyItem().pageItems.everyItem().remove();
Well, not the ones in table cells and footnote texts.
This requires extra effort…
Regards,
Uwe Laubender
( Adobe Community Expert )
Copy link to clipboard
Copied
app.documents[0].stories.everyItem().texts.everyItem().tables.everyItem().cells.everyItem().pageItems.everyItem().remove()
should do the trick?
But instead of remove() - release() anchoredObjectSettings.releaseAnchoredObject() should work for @Anne35404369uvu5 - in both cases.
Copy link to clipboard
Copied
Hi Robert,
that would remove items in graphic cells as well.
And don't forget the footnote texts.
Regards,
Uwe Laubender
( Adobe Community Expert )
Copy link to clipboard
Copied
Robert said: "But instead of remove() - release() anchoredObjectSettings.releaseAnchoredObject() should work for @Anne35404369uvu5 - in both cases. "
Not the ones that are inline and above line anchored.
You first have to change the kind of anchor to, well, anchored.
Regards,
Uwe Laubender
( Adobe Community Expert )