Skip to main content
decoderltd
Participating Frequently
April 25, 2019
Question

Export multipage PDF with specific layers as individual pages

  • April 25, 2019
  • 1 reply
  • 416 views

Hi,

I'm looking for a script (or to create one) that exports a multipage PDF that creates a page as follows:

  1. Page showing all layers
  2. Page showing just layer called 'FOIL'
  3. Page showing just layer called 'VARNISH'
  4. Page showing just layer called 'FOIL'

I don't have much experience with scripting for Illustrator so any pointers would be appreciated.

Thanks.

This topic has been closed for replies.

1 reply

CarlosCanto
Community Expert
Community Expert
April 25, 2019

do you have some experience?

there's a script that comes with Illustrator, "SaveDocsAsPDF", use that to take care of #1.

then, edit the script to hide all layers, then unhide each layer you want to export.

give it a try and post back if you get stuck.

decoderltd
Participating Frequently
April 29, 2019

Thanks Carlos, I'll make a start with that script.

I also thought that a more flexible approach would be to add a character to the layers that I want to export (* for example). Then create a conditional routine that searched for layer names beginning with that character (e.g. *FOIL, *VARNISH, etc.) and saved them as separate pages. If it the character isn't present in a layer name, it just creates a standard PDF.

That way the script will be more flexible and wouldn't need updating for additional print process layers.