• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

InDesign Layers

New Here ,
Jan 31, 2017 Jan 31, 2017

Copy link to clipboard

Copied

I have a InDesign file that was built with 128 layers each containing CMYK content. I need to export the file to create 128 separate PDF files, one for each layer. Is this able to be done??

TOPICS
Scripting

Views

839

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 31, 2017 Jan 31, 2017

Copy link to clipboard

Copied

Hi James,

Try this:

var myDoc = app.activeDocument,

myLayer = myDoc.layers,

L = myLayer.length;

for (var l = 0; l < L; l++)  myLayer.visible = false;

for (var p = 0; p < L; p++)

    {

        myLayer

.visible = true;

        myDoc.exportFile(ExportFormat.pdfType, File(myDoc.filePath + "/" + myLayer

.name + ".pdf"), false);

        myLayer

.visible = false;     

    }

for (var l = 0; l < L; l++)  myLayer.visible = true;

… To be validated!

(^/)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 01, 2017 Feb 01, 2017

Copy link to clipboard

Copied

Thank you

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Feb 01, 2017 Feb 01, 2017

Copy link to clipboard

Copied

LATEST

If you ever need even more layer based options for further projects, have a look at MadeToPrint

http://www.axaio.com/doku.php/fr:products:madetoprint

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines