Copy link to clipboard
Copied
Hey guys,
I looked around and i can't find what i am looking for.
i have an indesign layout. it has 56 layers. i need to export a .pdf with each layer been in its own .pdf
I am on the latest version of indesign.
thank you.
Copy link to clipboard
Copied
Hi Jonathan, What OS are you using? My Layers To Photoshop AppleScript does it, but the PDFs get trashed after they have been transferred to Photoshop. It would be easy to edit and keep the layer PDFs.
http://www.zenodesign.com/forum/PageToPSLayersV8.zip
Copy link to clipboard
Copied
Hi,
if you use the ExportFile method with a the PDFExportPresets, this has the following options for layers.
ExportLayerOptions.EXPORT_ALL_LAYERS
ExportLayerOptions.EXPORT_VISIBLE_LAYERS
ExportLayerOptions.EXPORT_VISIBLE_PRINTABLE_LAYERS
So you could have a script that sets 1 layer visible, exports usint the "Export_Visible_Layers" option marked, then hide that layer and show the next and continue 56 times.
Let us know if you need more help with the script ( sorry not at my main machine so unable to create a sample at the moment)
Regards
Malcolm
Copy link to clipboard
Copied
Thank you for the quick response, i exported all layers and this below is what i get, its a 4 page .pdf with the layers, but how do i see the layers?
Copy link to clipboard
Copied
I'm confused. In the left column Acrobat is showing a list of all the document's layers. Click on the eyeball icon to turn on and off each layer's visibility.
Copy link to clipboard
Copied
nothing happens when i click the eye
Copy link to clipboard
Copied
Also, you run my AppleScript out of InDesign with the document active.
Copy link to clipboard
Copied
hey Rob,
it did export each layer in its own .pdf however, the .pdf files all back blank pages like the other script suggested:
Copy link to clipboard
Copied
I can see you are on OSX, try this AppleScript. Asks for a folder to save the layer PDFs in, and then you chose a PDF preset and the page number:
https://shared-assets.adobe.com/link/aadf5dfb-402a-4200-543c-c1a83ba58b4d
Copy link to clipboard
Copied
You can try this .jsx script.
var doc = app.documents[0];
var filePath = doc.filePath;
var docName = doc.name.replace(".indd","");
var layers = doc.layers;
layers.everyItem().visible = false;
app.pdfExportPreferences.exportWhichLayers = ExportLayerOptions.EXPORT_VISIBLE_LAYERS;
for (var i = 0; i < layers.length; i++) {
var layerName = layers[i].name;
layers[i].visible = true;
doc.exportFile(ExportFormat.PDF_TYPE, File(filePath + "/" + docName + "_" + layerName + ".pdf"), false);
layers[i].visible = false;
}
Copy link to clipboard
Copied
Hello,
Give Scott Zanelli's PageExporterUtility a try for your needs, the script and instructions can be downloaded form the link below.
https://indesignsecrets.com/page-exporter-utility-peu-5-script-updated-for-cs3.php
Regards,
Mike
Copy link to clipboard
Copied
Oh, that looks handy.
Copy link to clipboard
Copied
yes, i tried this indesign exports the artwork on only about 5 of the layers, even though all the layers are being exported
Copy link to clipboard
Copied
Did you try the snippet I provided?
Copy link to clipboard
Copied
this script did export each layer in its own .pdf. however, all of the .pdf files are blank and they all have multiple pages in them (also blank)
Copy link to clipboard
Copied
Jonathan said: "…nothing happens when i click the eye"
Hi Jonathan,
in Acrobat Pro see what you can find enabled and disabled in the Layer Properties dialog and set the options the way you want them. Default state, visibility and so on:
Result now in this case when clicking the eye symbol:
Regards,
Uwe Laubender
( ACP )
Copy link to clipboard
Copied
hi, this did not work on my machine, i may need to update my acrobat, i will un-install and re-install if needed.
Copy link to clipboard
Copied
Did you try my AppleScript?
Copy link to clipboard
Copied
yes sir
Copy link to clipboard
Copied
Hello,
Did you give Scott Zanelli's PageExporterUtility a try for your needs, the script and instructions can be downloaded form the link below.
https://indesignsecrets.com/page-exporter-utility-peu-5-script-updated-for-cs3.php
Regards,
Mike
Copy link to clipboard
Copied
yes, i tried that when i was looking this up before testing. The program exports the artwork on only about 5 of the layers, even though all the layers are being exported.
Copy link to clipboard
Copied
Hi Jonathan,
sorry, but I have to ask that:
Are the layers that do export empty are perhaps filled with contents that is formatted as non-printing?
Or are the layers themselves perhaps defined as non-printing? Check this with your layer options.
A non-printing layer's name should be listed in italics in the Layer panel.
Can we have a look at your InDesign PDF Export settings you are using for this project?
Regards,
Uwe Laubender
( ACP )
Copy link to clipboard
Copied
Hey Uwe,
i do have layers as print layers:
and these are my export settting: