Copy link to clipboard
Copied
We have partners that join our reseller program often. We like to co-brand all our documents with their logos but right now, we have about 50-100 different documents. We've been doing it manually up until this point, but is there a way to automate the addition of an image to a large set of documents?
Copy link to clipboard
Copied
You could use "Snippets" - and these can be set to always be in the same place/size.
https://helpx.adobe.com/ie/indesign/using/reusing-graphics-text.html
https://creativepro.com/the-joy-of-snippets/
Might speed up your process.
Copy link to clipboard
Copied
If the co-brand logo falls in the same place on all pages, you could add all documents to an InDesign Book panel, put the co-brand logo onto a Master Page, and then syncronize Master Pages across the Book.
Copy link to clipboard
Copied
Here's a rough start to how I would approach it, putting the logo rectangles on their own layer called Logo within each document. Assumes all docs are in one folder that you can select.
var placeLogo = function(doc, logo) {
var logoLayer = doc.layers.itemByName("Logo");
var logoRects = logoLayer.rectangles.everyItem().getElements();
for (var i = 0; i < logoRects.length; i++) {
logoRects[i].place(logo);
logoRects.fit(FitOptions.PROPORTIONALLY);
}
logoLayer.visible = true;
};
var main = function() {
var docFolder = Folder.selectDialog();
if (!docFolder) { return; }
var logo = File.openDialog();
if (!logo) { return; }
var allDocs = docFolder.getFiles("*.indd");
var doc;
for (var i = 0; i < allDocs.length; i++ ) {
doc = app.open(allDocs[i]);
placeLogo(doc, logo);
doc.close(SaveOptions.YES);
}
}
main();