Mobile app version of vmapp.org
Login or Join
Harper654

: Is there a way to annoate a layout with the file source in indesign? Is there a way to print / export a indesign file as a pdf or other but first annotate any images with the file source

@Harper654

Posted in: #AdobeIndesign #IndesignScripting

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.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Harper654

1 Comments

Sorted by latest first Latest Oldest Best

 

@Rambettina927

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 =
VerticalJustification.BOTTOM_ALIGN
myCaption.contents = tgt[i].graphics[0].itemLink.name
myCaption.paragraphs[0].justification =
Justification.CENTER_ALIGN;
bnds = tgt[i].visibleBounds;
myCaption.visibleBounds =
[bnds[0]-6, bnds[1], bnds[0]-1,bnds[3]];
}

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme