Adobe-CEP / CEP-Resources

Tools and documentation for building Creative Cloud app extensions with CEP
https://www.adobe.io/apis/creativecloud/cep.html
1.62k stars 828 forks source link

Embedding Graphics in InDesign files via extension script #129

Open AndrewMore1 opened 7 years ago

AndrewMore1 commented 7 years ago

Having a bit of trouble with embedding Graphic files into InDesign files. First, I don't see any information on the document.embed function. I'm also not seeing any mention in the document. Second, it appears that the latest ExtendScript information for InDesign is from CS4, is there a later version?

Essentially though I want to embed a file into InDesign, and not link it. I can successfully link a file using the "place" function.

grefel commented 7 years ago

You can find the lates API for ExtendScript/InDesign here: http://www.indesignjs.de/extendscriptAPI/indesign-latest/

Embedding is via unlink() a placed link.

undefined unlink () Embeds the source file in the document.

http://www.indesignjs.de/extendscriptAPI/indesign-latest/#Link.html

AndrewMore1 commented 7 years ago

Thanks! I was mucking about with the old docs, these are much clearer.