Home > InDesign Scripts > Find embedded images

Find embedded images

This is not my script, but I find it really handy! It searches through all links in document and finds just embedded links and push them into Array.

var doc = app.activeDocument;
var graphics = doc.allGraphics;
var embeddedGraphics = [];
for (var i = 0; i < graphics.length; i++) {
     if (graphics[i].itemLink.status == LinkStatus.LINK_EMBEDDED) {
alert(embeddedGraphics.length + " embedded images were found");

When you have links in embeddedGraphics you can for example extract page number from link like this:


Or link name:


Or effective ppi:


I want to credit Kasyan Servetsky as author of this short snippet.  This was also published on Adobe’s InDesign Scripting forum.

  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: