Skip to main content
Participant
July 30, 2024
Question

Retrieve and place an asset from library to the bottom of the page.

  • July 30, 2024
  • 2 replies
  • 178 views

I want to read a asset from indesign Library. Place it in the textframe and move it to an frame. But when I am using cannot move the assets by position. Kindly help me to drag the asset to the position.

 

Dim versoRectContiueAsset As Asset
versoRectContiueAsset = getAssetFromLibrary("TB-con")

versoRectContiueAsset.PlaceAsset(indesignApplication.ActiveDocument) It copies the library and place in the pasteboard. Kindly help me to move it the page 2. textframe 2

 

This topic has been closed for replies.

2 replies

Community Expert
July 31, 2024

Hi @AyshaIsmail ,

I'm not sure what you are trying to do exactly by code.

Hm…

 

Is the asset a group of items that is really grouped when it was added to the InDesign library file?
Or is a multitude of items not grouped when it was added? Then placing the asset to a text insertion point will not work.

 

Regards,
Uwe Laubender
( Adobe Community Expert )

 

Robert at ID-Tasker
Legend
July 30, 2024

You can use this info:

 

https://www.indesignjs.de/extendscriptAPI/indesign-latest/#Asset.html#d1e298851__d1e299147

 

You can place it directly into your destination TextFrame - instead of Document.