Graphic Design Stack Exchange is a question and answer site for Graphic Design professionals, students, and enthusiasts. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to print / export a indesign file as a pdf or other but first annotate any images with the file source ie. user/documents/images.. etc so that whens its printed / exported it will say what the source is for each image by the side / ontop of the image.

share|improve this question

I used a javascript for this purpose in CS1/3/5.5. I'm not aware of any built in way to do it.

I can't find my oldie around anywhere, but the Adobe InDesign scripting forum is usually a treasure trove. I think this one is at least a start. Here's the final code from that discussion.

var tgt = app.activeDocument.rectangles;
for (i=0;i<tgt.length;i++){
myCaption = app.activeDocument.textFrames.add();
myCaption.textFramePreferences.verticalJustification =
myCaption.contents = tgt[i].graphics[0]
myCaption.paragraphs[0].justification =
bnds = tgt[i].visibleBounds;
myCaption.visibleBounds =
    [bnds[0]-6, bnds[1], bnds[0]-1,bnds[3]];
share|improve this answer
Thanks plainclothes, could you share you javascript – sam Mar 14 '14 at 10:19
*your javascript – sam Mar 14 '14 at 17:36
I'll have to dig around a bit. I'll update my answer if/when I can find something. – plainclothes Mar 14 '14 at 20:54
Answer updated. – plainclothes Mar 14 '14 at 23:40

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.