AS) export single page PDFs from multi-artboards

I'm not exactly sure where my new problem lies. I'm trying to save out single page PDFs from an Illustrator CS4 document with multiple artboards. Each artboard should become a PDF. I can get a multi page PDF, but when it saves single page files, I get white PDFs with error messages on them (I think it is saving .ai files with a .pdf extension).
this is where I am now (simplified, of course):
tell application "Adobe Illustrator"
set docName to name of current document
set itemNumber to 1
tell application "Finder" to set fileLoc to path to desktop as string
set pageCount to (count artboards in document docName)
tell current document
set allPlacedItems to placed items
repeat with h from 1 to (count of allPlacedItems)
set thisPlacedItem to item h of allPlacedItems
tell thisPlacedItem to embed
end repeat
set allTextItems to text frames
repeat with j from 1 to (count of allTextItems)
set thisTextItem to item j of allTextItems
tell thisTextItem to convert to paths
end repeat
end tell
repeat with i from 1 to pageCount
set pdfSaveOptions to {class:PDF save options, pdfXstandard:PDFX None, compatibility:Acrobat 6, preserve editability:false, generate thumbnails:false, optimization:false, acrobat layers:false, artboard range:i, view pdf:false, color downsampling:0, color resample:nodownsample, color compression:none, grayscale downsampling:0, grayscale resample:nodownsample, grayscale compression:none, monochrome downsampling:0, monochrome resample:nodownsample, monochrome compression:none, compress art:false, trim marks:false, registration marks:false, color bars:false, page info:false, page marks style:Roman, trim mark weight:trimmarkweight025, offset:6.0, bleed link:true, bleed offset:{0, 0, 0, 0}, color conversion id:none, color destination id:none, color profile id:include all profiles, trapped:false, font subset threshold:50.0}
set pdfName to docName & "TEST" & itemNumber & ".pdf"
set destFile to (fileLoc & pdfName) as string
save document 1 in file destFile as pdf with options pdfSaveOptions
set itemNumber to (itemNumber + 1)
end repeat
close current document without saving
end tell

// Save the artboards to PDF.
var myDoc = app.activeDocument;
var original_filename = myDoc.name.toString();
// alert (myDoc.name.toString() )
// Get the folder location
var destFolder = Folder.selectDialog('Select the folder to save the PDF files to:');
// Get the number of artboards to export from a dialogue
var total =  myDoc.artboards.length
//     Number.selectDialogue('Total Number of Files to be made')
if (destFolder) {
     for (i=0; i<total; i++)
          var destFile = new File(destFolder+original_filename+"_"+i);          //     Assign incrementing filenames
          var pdfSaveOptions = new PDFSaveOptions();
          pdfSaveOptions.viewAfterSaving = false;          //     Don't want to see these fles in Reader
          pdfSaveOptions.SaveMultipleArtboards = true;
          var range = new String();
          range = (i+1).toString();
          pdfSaveOptions.artboardRange= range;     //     not Assign incrementing page range
          myDoc.saveAs (destFile,  pdfSaveOptions);     
I've run this script on the 3 art board document the Adobe sample scripts create. It's a just different coloured star on each artboard.
This script appears to work in as far as I get 3 files with just one artboard showing when I open the files in Adobe Reader. Problem is when I open them in AI, I can see all the artwork is still there and even more stranger is the fact that the numbers are still 1,2,3 whereas in Reader it's just page i showing as page 1 each time.
This could be a problem when the application I'm writing generates an image structure from the files if it sticks the excess data onto the GPU (not sure if it will or not). If it includes all the data, also it just makes the Application footprint bigger by a 8 MB or so of unnecessary baggage. An issue for a 'light weight' app.
I noticed the export ExportArtboardsPhotoshop.jsx script has this line:
psdExportOptions.saveMultipleArtboards = true;
It works in that context but in PDF context it only works in terms of what Reader shows not what exists in the files. Good one Adobe… Makes me wonder what the Multiple art boards method did before AI had multiple art boards. How was AI dividing the objects?!
Also I really need a SaveAsCopy (non-existent I think) method or I'll have to keep reopening the original file and then doing SaveAs.
Back to manual duplicating files in finder, batch renaming, opening them all and deleting excess. Or export to PSD and get my dimensions right or just oversized (I can always down sample in the app)…
This is truly a painful exercise!

Similar Messages

  • Export single-page pdfs with page name

    I've been looking for a script that:
    - exports every page of an indesign file to a seperate single-page pdf (or other filetypes)
    - names the pdf with the name of a page -> this is the hard part to find
    The reason i could use it: i have a 200+ page file with productspecs. I would like to export every page with the correct productname. (extracting pdfs in acrobat is not a problem, but then i have to manually rename every file)
    I'm not sure how to name the pages, as it's not a function in indesign. Ideal would be to be able to "tell" indesign: this textframe = the pagename, so it wouldn't be necessary to label the page seperately.
    I'm not a scripter. I searched the forum and found some info on this already, but not a working script including automatic pagenaming.
    I did found an old post where someone points to such a script, but i can't find it:
    http://www.techplex.net/postsm40018_possible-to-name-pages.html#post40018
    Did anyone ever made/found/used such a script?
    (btw, a similar script for illustrator artboards would be very useful too!)
    Any help appreciated!

    scott zanelli made one years ago. does a fantastic job.
    http://indesignsecrets.com/page-exporter-utility-peu-5-script-updated-for-cs3.php
    Loic Aigon has written one...
    http://www.loicaigon.com/blog/?p=876
    as for illustrator artboards... don't know - have a look on the illustrator scripting forum.

  • Creating single page pdfs from a brochure designed in spreads format

    Hi there,
    So I've been asked to take a brochure that is in spreads, and save each panel as a single page pdf. So basically, in document setup, the page size is 17.75 x 8.5).  There are four panels, each panel is roughly 4.3708 x 8.5. The problem is, each panel was not created as a single page in indesign...instead, it's set up as a 17.75 x 8.5 document and the panels are created within that document size.
    I guess I wanted to find out if there is an efficient way of creating these single panel pdfs from what I've been given.
    Anybody know?

    It's either copy/paste into a properly laid out facing pages document (the best choice if it will need editing in the future), or place the pages, each one twice, into a facing pages pages doc and crop the wrong half off each page. In either case, you'll need to rearrange the pages into readers' spreads.

  • How do I open single-page PDFs from Mail?

    If I receive an email containing a one-page PDF, Mail shows it as an image. I want to see it as a PDF so I can open it in another app.
    Multiple-page PDFs are fine.
    This problem also exists when sending one-page PDF files from the iPad - they arrive as images.

    Single page pdf files always appear as already open in the mail app.
    I just created a single page PDF and emailed it to myself and this is what I get when I do what I suggebd that you do. This is how you do it. Why it is working for you I cannot explain.
    If you haven't done so already, the next thing that I would try is to close the mail app completely and reboot your iPad.
    Double tap the home button and you will see apps lined up going left to right across the screen. Swipe to get to the Mail app and then swipe "up" on the app thumbnail to close it.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

  • How do I prevent single-page PDFs from appearing inline in the email body?

    When someone sends me a multiple page PDF, the email contains an attachment icon.  When I click on the icon, the PDF is opened full-screen.  When I click on the screen, icons appear including a box with an arrow pointing up.  Clicking on this icon, lets me send the PDF to other applications such as iBooks. 
    When someone sends me a single-page PDF, the PDF is displayed inline in the body of the email and I do not see a way to send the PDF to other applications.  Is there a way to view the PDF full-screen and thus send the document to other applications?
    I have the new iPad (v3) running iOS 7. 

    What you are experience is totally normal and the expected behavior for a single page PDF as an attachment in an email. You can easily save it to another app by simply tapping and holding down on the open PDF and the Open In window will pop up. It may take a little practice but it does work. Just tap and hold down on the open PDF.

  • Single Page PDFs from a 100 page PDF

    Hi,
    I have a 100 Page Katalog (ID). My client needs a single PDF from each page? Is there a automated way to do that or do I have to save each page myself individually?

    Document - Extract Pages.
    Make sure to tick the "Extract Pages as Separate Files" box.

  • Create multi-page PDF from multi-layer AI file

    This is an old question, I'm sure...
    I have an .ai file with 33 layers. Each layer represents an individual page of a manual. I have CS4 ... Is there a way of quickly exporting or saving the document where it creates a PDF page from each layer? Or do I have to go through and individually save each layer as a PDF and then combine them? I'm not savvy with coding, so that route probably won't work without serious hand holding (Windows XP, just in case).
    Thanks in advance,
    Zack

    Create additional artboards and distribute the pages across them.
    Mylenium

  • Export single Pages (as PDF) from a .indd file

    Hi folks
    i use ID CS2 and i'm trying to export single pages from an indd file (using C#).
    i tried to make an example first and thats my code so far:
    [CODE]
    InDesign.Application App = (InDesign.Application) COMCreateObject("Indesign.Application");
    InDesign.Document doc = App.ActiveDocument;
    InDesign.Page page = (InDesign.Page)doc.Pages[1];
    doc.Export(IdExportFormat.idPDFType, @"C:\indesignTestFile.pdf", false, "[High Quality Print]", "Some Comment", true);
    [/CODE]
    Now it says that the IdExportFormat command is not known.
    any suggestions would be very great.
    kind regards

    thx for the quick answer. this piece of code is from a sample and i changed id to this one:
    in the very top of the program - using InDesign (so that the idExportFormat works)
    doc.Export(idExportFormat.idPDFType, "C:\\indesignTestFile.pdf", false, //object using)
    now i have no idea what i should enter at object using
    could you explain that to me a little bit further? do i have to make a constant var that has the value 1952403524 and then use idExportFormat.idPDFType as well or idExportFormat(1952403524)?
    i haven't progged a while and i feel a little bit dumb right now =D so sorry for this newbie questions.
    thanks for your help, i realy appreciate that
    kind regards

  • Can I use Automator to create a multi-page PDF from a selection of images?

    Well can I? I have looked at Preview extensively but found no option to create a multi-page document from all open images. I can create single-page PDF's easily, but that's not what I want.
    Does it make a difference if they are TIFF, JPEG, etc?

    Take a look at
    PDFLab
    It will create a multi – page .pdf from a folder of .jpgs. I am ** guessing ** it will work with .tiffs.
    No Alibi.
     Back up what you can't afford to lose.   Mac OS X (10.4.10)  

  • Multi-page PDF to multiple single-page PDFs

    Hello, I'm wondering if anyone out there knows a way, if you have a multi-page PDF, to export each individual page to it's own single-page PDF.  Is there a way to do this in Acrobat?
    Or is there a way in Microsoft Word using Adobe's PDF print driver, to print each page to it's own single-page PDF?
    Ultimately I want to run a batch process on each PDF page in Illustrator, but for me to do that each page needs to be it's own PDF.
    Thanks for any help!!!!

    Something that may help -
    With a multi-page PDF open in Acrobat Pro; select Document > Extract Pages
    In the Extract Pages dialog you can select "Extract Pages As Separate Files".
    This will provide you with a PDF file for each page of the source PDF file.
    Additional options are also possible.
    In a thread at AUC, Thom Parker identifies these.
    http://www.acrobatusers.com/forums/aucbb/viewtopic.php?id=4703
    Be well...

  • Unable to mark the box 'create Multi-page PDF from page tiles' when saving to pdf-file

    I am running Illustrator CS3 on a Mac OSX 10.5.8
    I want to print a very large illustrator-file (1000 mm x 900 mm) across mutliple pages of A4-paper (5 x 5 sheets of A4-paper) by saving the file as a multi-page pdf file.
    I first followed the instructions provided here:
    http://helpx.adobe.com/illustrator/kb/create-mutli-page-pdf-illustrator.html
    When I then tried to save the file: -> File -> Save as -> 'choose .pdf from drop-down menu'
    I get to this menu:
    I am unable to mark the box that says: 'Create multi-page pdf from page tiles'. I have made a red arrow pointing to the box I want to mark.
    I have tried changing the other drop-down menus inside this menu, to see if the box I want to mark could become available, but without any luck.
    I am not sure what I am doing wrong. I would be grateful if anyone could help me set my settings right to allow me to create such a multi-page pdf-file.
    Thanks in advance for your help

    Your ps file should be good, the problem likely resides elswehere. Maybe in your acrobat install, distillers settings. what error did distiller give?
    Mine ran good and got a multi page document, here is a screenshot to help you troubleshoot.
    On mac go to system preferences / print and fax / and change your default printer if you have another option. I know sounds like this should not help, but there are problems like Illustrator for example not making .pdfs if you do not have a printer chosen or an old or corrupt .ppd assigned.

  • Exporting a multipage InDesign document to single page PDFs but with unique filenames using scripts

    Hi,
    I'm using InDesign 5.5.
    My goal is to export a multipage InDesign file into single page PDFs but each single PDF must be uniquely named.
    For example;
    InDesignFileName_487275123.00.pdf
    InDesignFileName_734876882.00.pdf
    ...and so on.
    I've spent a great deal of time searching online and the closest I have found is  software called Output Factory which works fine.
    The way Output Factory works is by placing a script label within a textframe on the master page in InDesign. Then whatever is typed into the text frame on each the separate pages defines the file name of each separate page.
    However if I can solve this problem without any investment costs my boss will be very happy
    I found PEU5 which works great for exporting into single pages, it's now a case of naming each single PDF but I know nothing how about to create a script but I get the gist of what they do. My understanding is that a script could solve the second half of my problem.
    Can anyone help?
    Thanks.
    S

    Thanks Peter but but I don't think this is what I'm looking for.
    I did find this post http://forums.adobe.com/thread/841982 but I can't seem to get the script to work.
    This is the error message I get when I run the script... any ideas what I'm doing wrong?

  • Place Single Page PDF Multi Times into a template

    Say for instance I have a Business Card 90 x 55 which needs to be placed on a 8up layout template ready for printing.
    How do I tell Indesign to place the single page PDF 8 times.
    Or maybe this way: Is there a way of telling Indesign to export a single page 8 times to the same pdf file. Size is not an issue for the PDF as it is only a tempary file.

    I have set up a template with Place holders for the pdf to be placed in, then to place the pdf all i have to do is click inside each of the place holders and wala they are there.
    So on my 8up template i have all my required items ie: colour bars, crop marks, and guides all on their own layers, and the 8 boxes on their own layer, I import the PDF loading my curser, click on a box and artwork is placed exactly where I need it to be.
    You are right about step and repeat being one way of doing this, but I think my way if I can work it out will be even faster, no mesurements to remember no typing just 8 quick clicks.
    If by any chance I need more then 8 up adding a page is no problems the boxes are on the master page and I just release the objects on the artwork layer and its ready to go again as many times as I need it.
    What do you think of the idea to Print to PDF is this a lower quality way of making the PDF.

  • I need help exporting pages newsletters as single page PDF's or as a .jpeg for an online photo book.

    need help exporting pages newsletters as single page PDF's or as a .jpeg for an online photo book.

    No same idea: 1. Look  2. Try.
    This is in Mavericks:
    Peter

  • Creating multi-page PDF from Page Tiles

    Trying to save out a page-tiled Illustrator document to multi page PDF. The "Create Multi-Page PDF from Page Tiles" is ghosted/disabled when I save out as PDF; and printing to PDF doesn't size page edges properly. I've followed all directions and re-created new docs to see if I can get this to work, no luck.
    Is there a trick I'm missing? Using Illustrator CS3 13.0.2 Mac, Acrobat 8.1.3. Thanks!

    This would be hard to answer but you must be missing something the question is what are you doing and how is the document set up and then the really important question what are doing wrong. Which I know you want us to tell you but without knowing what that is we cannot tell you what not to do.
    If there is something you can tell that might give us a clue perhaps we can help.

Maybe you are looking for

  • How to connect my Satellite L300 to the TV?

    Hi... I have a Toshiba Satellite L300-2C4 and wish to connect it to my Toshiba 32HV10E plazma The tv have a hdmi input, so I bought VGA adaptor and connect it to the computer Unfortunately it doesnt work. The computer can recognise the tv but not the

  • Picking status in Out. delivery changed to status A after GR post with MB0A

    Hi, I am facing an issue in our production system, these is the scenario: - Replenishment delivery - ZPicking confirmation idoc sucessfully picked the outbound delivery and post the GI.  The material was cut and it was batch splitted. - Then it was p

  • Hub 4 keeps loosing broadband connectio

    I have been in touch with cust service several times. my hub 4 (a replacement two weeks ago when the problem was first thought to be the hub) keeps disconnecting from the internet. it can be fine for days, then at other times it can disconnect every

  • What happened to my pop-up menu?

    As I'm redesigning this site (MUCH work to do), I've inserted a DW pop-up menu for the "Competitions in Review" link. It worked before I did a slight page redesign... Any clues as to what happened? http://www.hhipc.org

  • Displaying html code in JSP page

    Hi. How do I display HTML code in an jsp page, so that the actual code is printet on the screen fx: <html> <head> </head> <body> </body> </html>