Skip to main content
Participant
February 10, 2020
Answered

How to insert an image into Indesign from CEP?

  • February 10, 2020
  • 2 replies
  • 832 views

Hello there, 

 

I am trying to insert an image into Indesign canvas via jsx. 
How can achieve that?
I suppose it is something like 'app.activeDocument' dot something function. 

Also, to avoid coming back here with these very basic questions, can someone point me out a place where I can read about all the app.activeDocument functions and attributes?

 

What is the exact forum for CEP questions like these?

 

Thanks in advance!

 

Regards,

Gyps.

This topic has been closed for replies.
Correct answer Laubender

Hi Gyps,

it seems you are looking for ExtendScript methods, objects and properties with InDesign.

Have a look at the document object model's method place(). E.g. for object document:

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

 

FWIW: place() is available for other objects as well.

Page, Spread, Rectangle, Oval, Polygon etc.pp.

Even with object insertionPoint if you want to place an image directly to text and anchor it.

 

Regards,
Uwe Laubender

( ACP )

2 replies

LaubenderCommunity ExpertCorrect answer
Community Expert
February 10, 2020

Hi Gyps,

it seems you are looking for ExtendScript methods, objects and properties with InDesign.

Have a look at the document object model's method place(). E.g. for object document:

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

 

FWIW: place() is available for other objects as well.

Page, Spread, Rectangle, Oval, Polygon etc.pp.

Even with object insertionPoint if you want to place an image directly to text and anchor it.

 

Regards,
Uwe Laubender

( ACP )

John T Smith
Community Expert
Community Expert
February 10, 2020
Participant
February 10, 2020

Hi John, 

Thanks for the link.
However, all the documentation that is on the link ( the github page ) does not guide through how-to-do those kind of basic things with the canvas. At least I could not identify any. 
Can you point out the specific thread?

Regards, 

Gyps