Hello Guys, I also found a script that does the job ! Here you go : Copy the below into a text file then rename it as : ExportAlternativeLayoutsAsPDF.jsx (make sure the .jsx is the extension of the file) /* Here is my solution (actually, not only mine - I found similar script and modified them to make it work the way you need). This script ask you to choose PDF Export preset first (you can set necessary settings in: File > Adobe PDF Presets > Define... dialog box, then save preset, and choose it when you run this script). Once you choosed Export Preset - click OK, Script will save pdf files with your alternative layouts to the same folder where your InDesign file is saved, with name of FileName_LayoutName.pdf If you have suggestions of how to improve this code - feel free to contact me Oleh Melnyk oleh.melnyk@gmail.com 5 November 2014 */ pagesCount = app.activeDocument.pages.length; alternativeLayout = []; // arrayes with alternative layouts names fileName = app.activeDocument.name; filePath = app.activeDocument.fullName.fsName; fileNameWithPath = filePath.replace(/.indd/, ""); // remove indesign .indd extenstion, as we don't need it // dirty way to get all alterative layouts names - there should be a better way, but for now I don't know how for(i = 0; i < pagesCount; i++) { if(alternativeLayout[alternativeLayout.length-1] != app.activeDocument.pages.appliedAlternateLayout.alternateLayout) { alternativeLayout.push(app.activeDocument.pages.appliedAlternateLayout.alternateLayout); } } // CORE of the script from here: http://indisnip.wordpress.com/2010/08/02/simple-pdf-export-with-preset-selection/ presets = app.pdfExportPresets.everyItem().name; presets.unshift("- Select PDF Preset -"); var win = new Window('dialog', 'PDF Export Presets'); win.orientation = 'row'; with(win){ win.header = add('statictext', undefined, 'Select PDF Export preset:'); win.PDFExport = add('dropdownlist',undefined,undefined,{items:presets}); win.PDFExport.selection = 0; win.button = add('button', undefined, 'OK'); }; win.center(); window = win.show(); if(window == true && win.PDFExport.selection.index != 0) { preset = app.pdfExportPresets.item(String(win.PDFExport.selection)); for(l = 0; l < alternativeLayout.length; l++) { app.pdfExportPreferences.pageRange = alternativeLayout ; app.activeDocument.exportFile(ExportFormat.pdfType, (new File(fileNameWithPath + "_" + alternativeLayout + ".pdf")), false, preset); } } else { alert("No PDF Preset selected"); } Hope it helps, this works for me !
... View more