InDesign: Copy an entire layer from one file to another

by Stefano Bernardi

Free eBook: We made a free eBook with tips for optimizing your InDesign files for translation for printing and offline viewing. Download it here.

If you have ever worked with InDesign documents that needed to be produced in other languages, you are likely to have encountered the need to copy an entire layer from one InDesign document to another.

The reasons might be many. Printing needs, organization, ease of future updates of the document, etc.

Unfortunately, InDesign does not have a functionality that copies an entire layer from one document to another. Having worked on countless InDesign documents that needed the following structure made the process very time consuming:

  • Layer 4 - Target language 2
  • Layer 3 - Target language 1
  • Layer 2 - Base language
  • Layer 1 - Graphic

 

The “handmade” way

Copy Indesign Layer - Layers

If, like me, you wanted to achieve something like this without using a script, you might have followed these steps:

Open the two InDesign documents.

Make sure that the layers of both documents were clean.

Create a layer in the main document with the same name of the layer you want to paste.

Check the Paste Remembers Layers function in the layer window.
Copy Indesign Layer - Paste in Remembers Layers

Copy and paste each page from one document to the other.

This process is highly time-consuming, but luckily, it can be automated.

 

The automated way (using a script)

We wrote a quick script that copies an entire layer from every page of one InDesign file to another.

To install the script:

Download it from here: layer-cloner-1.3.jsxbin.

Open Adobe InDesign.

Choose Window > Utilities > Scripts.
Copy Indesign Layer - activate script panel

In the Scripts panel, right click on User and choose Reveal in Finder (Mac) or Reveal in Explorer (PC).
Copy Indesign Layer - Reveal Script folder in Finder

If necessary, decompress the zip folder (the script extension should be either .jsx or .jsxbin).

Copy the script file (e.g., “layer-cloner-1.3.jsxbin”) inside the Scripts Panel folder.
Copy Indesign Layer - Script Folder

The script is now available in the Scripts panel inside InDesign. To execute it, just double click on the script name.
Copy Indesign Layer - Script Installed

Improve Your InDesign Skills

Sign up today for free and be the first to get notified on new tutorials and tips about InDesign. Get one tutorial every week in your inbox.

To run the script:

In InDesign: open the source and destination files.

Make sure that the two documents have the same number of pages.

Before launching the script, make sure that the source document is the one visible.

Please, make sure that none of the layers in the hosting document has the same name of the layer you are importing 

Click on layer-cloner-1.3.jsxbin in the Script Panel in InDesign.
Copy Indesign Layer - Script Installed

Select the layer you want to copy.
Copy Indesign Layer - Select Layer

Select the file you want to copy it into.
Copy Indesign Layer - Select the destination file

Wait for the script to complete the copy (it will take a few seconds).
Copy Indesign Layer - Layer copied

Please be aware that the script doesn't copy the items in the master spread.

If you have suggestions for improving the script or anything else, please feel free to drop me a line in the comments.
Also, be sure to subscribe to our newsletter to keep up with future posts or major updates of this script. If you liked the post, I'd really appreciate you sharing it!

More scripts?

For more scripts, visit also: 90 Must-Have InDesign scripts (Free and paid)

Stefano Bernardi
Stefano Bernardi

Stefano has worked on numerous mid to large–sized InDesign projects for Alstom, DeLonghi, Philips, and many others before starting Redokun in 2015.
As Redokun’s Co-Founder, Stefano spends most of his time helping customers to optimize their InDesign work-flow. He also holds in-house InDesign courses for companies in the Venice, Italy area.

19 Tips To Optimize Your InDesign File For Translation (Free Ebook)

Free InDesign Ebook
A short guide for InDesign users who work on multilingual projects. It'll give you an exhaustive look into the issue of creating an InDesign document ready for translation.

Get your multilingual projects done faster with Redokun. Free for 14 days.