Skip navigation
Currently Being Moderated

Script to export layers to pdf

Jul 23, 2007 8:50 AM

Is there a script that can export the top-level Layers of an Adobe Illustrator CS3 document as a multi-PAGE PDF?
 
Replies
  • Currently Being Moderated
    Dec 3, 2007 12:27 PM   in reply to (jennifer_cohen)
    Did you ever find a script to do this for CS3? I'm looking to do the same thing.
     
    |
    Mark as:
  • Currently Being Moderated
    Jan 10, 2008 2:54 PM   in reply to (jennifer_cohen)
    what format do I save this file as, and where do I put it in order to access it from inside illustrator?
     
    |
    Mark as:
  • Currently Being Moderated
    Jan 10, 2008 3:04 PM   in reply to (jennifer_cohen)
    ok, got it to work. thanks. Any word on a cs3 version? We are finally upgrading, but now this will break.
     
    |
    Mark as:
  • Currently Being Moderated
    Jan 25, 2008 10:33 AM   in reply to (jennifer_cohen)
    That's exactly the type of script i need right now, i m working on a document that has over 55 layers and i need to save it as 1 pdf, how do i create this script using which software and how do i save it and make it work?
     
    |
    Mark as:
  • Currently Being Moderated
    Mar 5, 2008 4:13 AM   in reply to (jennifer_cohen)
    I get error messages when i try Jennifer Cohens script.
    any solutions someone?
    I need it for CS2.
     
    |
    Mark as:
  • Currently Being Moderated
    Mar 5, 2008 5:05 AM   in reply to (jennifer_cohen)
    Jennifer Cohens script does just save every layer as a pdf-file.
    i need something that produces a multipage pdf (each page one layer).
     
    |
    Mark as:
  • Currently Being Moderated
    Mar 7, 2008 2:49 AM   in reply to (jennifer_cohen)
    very active forum...
     
    |
    Mark as:
  • Currently Being Moderated
    Mar 7, 2008 9:06 AM   in reply to (jennifer_cohen)
    Your easiest choice is to use Acrobat and combine the PDFs into a single file.
     
    |
    Mark as:
  • Currently Being Moderated
    Mar 10, 2008 1:17 AM   in reply to (jennifer_cohen)
    Ya but i need to create it on the fly with a script.
    Look:

    function create_pdf(){

    doc = activeDocument;
    pages = doc.layers.length;

    for (i=0; i<[pages]; i++) {

    docRef = doc.layers[i];
    docRef.visible = false;
    }

    for (i=0; i<doc.layers.length; i++) {
    doc.layers[i].visible = true;
    docRef = activeDocument;
    printJobOptions= new PrintJobOptions();
    options = new PrintOptions();
    options.jobOptions = printJobOptions;
    printJobOptions.collate = true;
    printJobOptions.designation = PrintArtworkDesignation.ALLLAYERS;
    printJobOptions.reverse = false;
    docPath = new File("~/printJobTest1.ps");
    printJobOptions.file = docPath;
    docRef.print(options);
    doc.layers[i].visible = false;
    }
    }
    create_pdf();

    This is nearly what i want... except it prints all on one page.. so i need to find the trick that changes the page index while printing.. Any idea?
    I think with the right modification this script will do the job for everyone who needs it.
     
    |
    Mark as:
  • Currently Being Moderated
    Jun 9, 2008 12:05 AM   in reply to (jennifer_cohen)
    I've used a number of scripts before for InDesign, they worked for me. However I tried Cohen's script in post 1, on Illustrator CS2 but it doesn't show in the Script list! What's the procedures for Illustrator, is this a JavaScript, I assume this scrip works for Mac and PC?
     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)