Script to batch export multiple Books (.indb) to PDF

I have multiple InDesign Book files that I would like to batch export to PDFs, respectively. (Not looking to combine multiple books into a single PDF. Just a 1 to 1 PDF export for each Book file.)
In googling for an answer, I found Peter Kahrel's script for doing just this for other InDesign files, but it does not work for Books. http://www.kahrel.plus.com/indesign/batch_convert.html
Does anyone know of a solution (paid or otherwise) for this process?  Opening up each Book and exporting to PDF from the ID menu takes quite a bit of time when doing this for several dozen files.
Looking forward to any discussion to come up with a solution if one can be found... Mr. Kahrel's javascript file is a binary js file, so it can't be modified as is, and other solutions I've found around the web don't clearly state that they work with Book files or not.

try below code
before run script close all indb file
var fileFilters = "InDesign:*.indb*";
var myFolder = Folder.selectDialog ("choose Folder", fileFilters, false);
var files = myFolder.getFiles("*.indb");
for(i = 0; i < files.length; i++)
       var theDocument = app.open(File(files[i]), true);
         with ( theDocument ) {
            alert ( theDocument.name)
             exportPdf(theDocument)
function exportPdf(theDocument)
      myFilePath = myFolder + "/" +  theDocument.name + "_" + ".pdf";
        myFile = new File(myFilePath);
          theDocument.exportFile(ExportFormat.pdfType, myFile, false, app.pdfExportPresets.item('[Smallest File Size]'));
theDocument.close(SaveOptions.no)

Similar Messages

  • I can not export my book as a PDF file, Why?

    I'm having problem exporting my book as a PDF or JPEG file so I can set it to a client, please help me.

    In case if the files are missing for the once you have in your book module they can have issues exporting as PDF or JPEG.
    Please check the same and replace the files which are missing or attach the same and then try exporting the same.
    -Mandhir

  • Script for Batch Exporting XML from IDCS3 files

    Does anyone have a script they would share for batch exporting XML from IDCS3 files? I do not know anything about scripting so I do not know how to write one myself. I've also searched around and cannot find anything. I would appreciate any help with this anyone can offer.
    Thanks,
    Janine

    Or use below Code:
    try {
         inFolderName= Folder.selectDialog ("Input Folder:");
         outFolderName= Folder.selectDialog ("Output Folder:");
         if ((inFolderName != null) && (outFolderName != null))
              var idFileFolder = new Folder(inFolderName);
              var files = idFileFolder.getFiles("*.indd");
              for(myCounter = 0; myCounter < files.length; myCounter++)
                   var theDocument = app.open(File(files[myCounter]));
                   with ( theDocument ) {
                   myXMLFile = new File(outFolderName + "/" + name.replace(".indd","") + ".xml" );
                   exportFile( ExportFormat.xml, myXMLFile );
                   close(SaveOptions.no);
    catch (err ) {
    alert("All files export");
    Shonky

  • How do I maintain bookmarks in multiple documents when exporting a book file to PDF?

    I am using a book file to organize 10 individual indesign documents. Each document has its own set of bookmarks and links, and their are links that go to other documents within the book as well. How do I (using CS3) print my book file to PDF while maintaining all the interactive components? I want my complete list of bookmarks to appear within the bookmark pane, and I want all of the interactive links in the document to work when they are clicked in the PDF. Doing this for one document is simple, set the preferences to enable the bookmarks and links. However, none of these PDF export settings seem to work when printing the entire book.
    Help!

    I had it open, just wasn't looking in the right spot. Found it... thanks a bundle. This has made my day... as long as the bookmarks work when I export.
    Thanks!

  • Any way to export a book using a PDF preset?

    Let me first explain the workflow we have right now, and that we are slowly trying to improve upon, but nonetheless...
    I am designing a newspaper. We have two individuals who pagenate the pages, laying out the advertisements on them before sending me a packaged InDesign document of each page.
    I, right now, am going and opening each InDesign document, then dragging it into my master document, which takes some time. I then finish laying out the newspaper with copy.
    I thought recently I might instead simply open all the InDesign documents in a book and then finish laying out the newspaper from there.
    My First question though is, can you actually thread text from one text box to a text box in another document within the book? If not, is there any practical solution to this?
    Secondly, I tried exporting a book with one of the PDF presets we have created, but I only saw the two options, PDF print and PDF interactive. Is there no way to export a book as one of the pdf presets?
    I'm working on a mac on CS6.

    First, no, you cannot thread between files, so you would need to move pages from one file into the other.
    Second, you can certainly export the book to PDF. There are two "flavors" of PDF, interactive or print, but either one can be used to make a PDF from the entire Book. Choose Export Book as PDF from the Book Panel flyout menu, choose your flavor as appropriate, then choose a location and finally the options.

  • Using FCP server to batch export multiple sequences from a FCP file

    Hi... I am researching to see if FCP Server will be useful for our work flow.
    We are creating multiple sequences in one FCP project file, and I want to be able to drop that .fcp project file into a folder and have a "watch and respond" action on the folder that takes all the sequences in that project file and applies a compressor preset to each sequence inside the project file without me having to open the file and select all sequences and batch them through compressor manually.
    If this is possible then FCPS is going to save us a lot of man hours... does anyone know from experience if this is possible? I know you can take a QT file and do this, but I am not sure if you can do this with a project file!
    Thank you
    Barry

    We work with FCP projects that have 7 - 10 sequences. When the day is done we do a quick export current settings and drag them into the production that contains the fcp project. W also flag them "ready for review" and "send to the web app". Works great for me and costs about 2 minutes. Just about the time it takes to put on your coat and say goodbye to everybody in our little editshop.

  • Exporting multiple e-mails as .pdf

    I'm responsible for coordinating a multi-author, book-writing project and I've been asked to store all e-mail correspondences in a fashion that allows all of the authors and project managers to access the e-mails. I have a shared folder set up on my Google drive that allows all the users to access shared files which is working fantastically, but I can't find a way to export large quantities of e-mails at the same time that also works for Google drive.
    After a quick Google search I found this site which provided instructions on how to install this set of scripts which allowed me to archive my selected e-mails as .rtf files with their attachments. It works great and allows me to customize the naming of the files to allow other authors to easily locate a specific e-mail. It names each file "From %f to %t - %s - %M %d, %Y.rtf" where %t is the recipient, %f is the sender, %s is the subject/thread topic and %M %d, %Y is Month day, year (eg To John Smith from Jane Doe - Book Project - December 12, 2012.rtf).
    Unfortunately, after uploading the folder containing all these .rtf files I found out that .rtf can't be viewed on Google and must be downloaded then opened on the user's computer. To fix this I tried having Google automatically convert the files to Google docs as it uploaded the files, but this didn't work and even if it did I fear the files would lose their attachments.
    I then tried searching for scripts that would allow me to change all of the .rtf files to .pdf. I found and tried a few, but they all had problems (the script would only operate on pre Mountain Lion, the requires Word for Mac, etc.)
    Then I tried finding a script that would work like the first successful one, but export the files as .pdf rather than .rtf. I couldn't find anything, but found an article that reminded me I could print to .pdf from mail ("Save as PDF..." in the system print window). I tried doing this, but after 'printing' the first of all the e-mails an error box pops up and no more e-mails 'print.' If I "Open PDF in Preview" I can successfully save all of the e-mails as .pdf, but their file names are all Preview of "<e-mail subject>".pdf which isn't helpful because nearly all correspondences in the group have a subject like "Book" or "Book Project" meaning it'd be impossible to determine which e-mail is which by the .pdf filename.
    I feel like their are a lot of different routes I can take to solve this problem, I just need help finding the components:
    1. Use the first successful script to export as .rtf, then use another script to convert them to .pdf. This would be the best because it will allow me to use a useful filenaming system. To do this I need a script that can convert .rtf to .pdf on my system.
    2. Find a script like the first, successful script I used that allows me to export the e-mails as a .pdf using the subject, to/from, etc. as the filename.
    3. Open PDF in Preview, save, then use a script to rename all the files by extracting the subject, to/from and date from the .pdfs. To do this I need a script that can find the subject, etc. in the .pdf and use that data to change the file name. (I highly doubt such a script exists and I don't have the script-writing skills to create one myself.)
    4. Any other solution that allows me to take a lot of e-mails from my Mail app and upload them to my Google drive while maintaining attachments and generating logical filenames.
    5. Any other solution that makes it possible for me to make correspondences available for all authors to access (keeping in mind that cross-platform compatibility is essential).
    Suggestions?

    I found your first suggestion while doing a Google search. That post was made in mid-2011, almost a year before Mountain Lion released. Apple changed the way scripts work in Mountain Lion and this script no longer works.
    As far as I can tell, the second solution only works for printing one e-mail to a .pdf at a time and doesn't support batch filenaming.

  • Exporting a book as a PDF WITH bleed?

    Hi,
    Can I export my Lightroom 4 Book WITH bleed? I want to send it to my printer but can't find a way to do this which means I'll have to re-do the whole project in InDesign
    Help please!
    Andy

    With BLEED as a PDF, that is... it's ok when it goes to BLURB, but when you output as a PDF to the Printer they can't see the bleed....

  • How to export multiples pages in one PDF file?

    I understand i can export image to a PDF file format.
    Is there a way to export a few pages in a single PDF file?

    Another method:
    http://forums.adobe.com/message/4506582#4506582

  • Exporting Indesign book to single page PDFs

    Hi,
    I'm after a script that will enable me to select an entire Indesign book and export it as separate individual PDFs in one go.
    I know there are a few scripts that either export the book into chapters or export the .indd files to separate single PDFs, but nothing that will do everything in one action. (i.e. take the book and output all the individual pages as single PDFs)
    Has anyone written a script like this or is it easy to tweak an existing script?
    BTW I have no scripting knowlege whatsoever.
    Thank you again
    Scott
    These are the two scripts I was refering to:
    http://www.kahrel.plus.com/indesign/pdf_individuals.html
    http://indesignsecrets.com/page-exporter-utility-peu-5-script-updated-for-cs3.php

    RichardM0701, are you the same person as scottbentley?
    I fear your response doesn't make a lot of sense. The easiest way is to put your files into a book, which will not harm them. The easiest script is often no script at all.
    I don't understand your comment about separate text boxes, files contain text boxes and definitionally multiple files means multiple separate text boxes.
    I do not know what you are referring to with respect to the toc update, perhaps you could reference a particular command or script, or provide a screenshot.
    It sounds like now you are interested in updating multiple tables of contents in a single fell swoop -- this would appear to have nothing to do with the original question. If that's the case, please start a new thread.

  • Best approach for accellerating batch export of jpgs/pngs

    To all who continously amaze me with their knowledge of scripting arcana.....here's some lead to transmogrify into gold.
    I've ironed out kinks of how to script a batch-export metadata and generate bitmap artwork (of whatever type) for a complicated set of folders holding .ai files. My script finds all of the AI files, exports the metadata to a text file, captures and logs errors without crashing, and opens each file to generate my full-size thumbnail.
    Works great, but isn't built for speed. The extraction of the metadata is blisteringly fast, but from what I can see I have to actually tell Illustrator to open the file before I can export the jpg or png, which forces illustrator to render the screen before doing the export.
    Is there any way to speed this up? Opening in preview mode (not scriptable?) still results in the calculation of the visibility and blurs, even though they aren't displayed.
    Would love to learn that I've made another beginner's assumption...maybe having bridge do it instead might be better?
    Thanks all
    -Alex

    Only *.psd export has the options for resolution… with the others it's 72dpi and you use scale ( PITA ) so if you do need a given resolution… first you need do the math and export then you need another app to resize… If your *.ai files are pdf compatible ( mine always are ) then you can just open in Photoshop…

  • Need help exporting multiple individual PDF files out of Indesign CC

    I work for a monthly publication and we send our files to the press at the end of the month. There are around 190+ pages that need to be exported as individual PDF's and each PDF needs to be labled as their correct page number. Since we often are backed up against the wall at our deadline, we really need a way to export all these files at one time. Is there a way to export multiple PDF files at one time in Indesign CC?

    You could script InDesign to export each page as individual PDF with specific export presets and labeled with correct page number.
    But you could also use Acrobat Pro for this task (sorry for the certainly wrong translation of the Acrobat UI – I use a german version ...):
    Export the whole publication as 1 PDF file (pp. 1-190).
    Open it in Acrobat Pro and choose »Tools › Extract Pages«.
    Type 1 to 190 and check the box »extract pages as single pages«, choose the location where to extract to and acrobat automatically numbers your new PDFs sequentially from 1 to x. (Caution: it doesn’t take the correct page number, but numbers sequentially, so it is important to have a PDF from pp. 1-190 in the correct order.)
    So with this (as mentioned – sorry for German ):
    You’ll get this:
    Tobias

  • Error message when trying to export a book as PDF or trying to send it to Blurb

    Hello
    I'm  desperatly trying to export my book as a pdf file in LR4 but I'm getting error message after rendering the 5th page (out of 85) Do you guys know why it's happening? Same error message when I try to send my book directly to Blurb (no surprise here since LR4 need to create a PDF file first....)
    Do you have any suggestions?
    To go around this problem, is there a way to export my book as it is (layout+ pictures (227)) to Blurb Booksmart software using the Blurb plug-in installed in LR4?
    Please Help!!!
    Thanks a lot in advance
    Richard

    Hello Dorin and thank you for your answer.
    Yes page 5 is a double page spread and this is not the only one in my book! I will modify the page 5 to see if the error message will appear at the next double page spread....
    Thanks again
    Richard

  • How to Keep Pages as Spread in Exporting CS2 Book

    While working with InDesign CS2 book feature, I'm trying to export my book as a pdf. The trouble that I am having is when my pdf doesn't keep all of the pages as spread. For example, let's say my first file has 5 pages ( pages 1-5 )  and then the next has 3 ( pages 6-8 ). In the original files, the document has spreads. However, in the pdf, pages 1-2 and 3-4 are spreads and then page 5 is single. And then, page 6 is single and then pages 7-8 are a spread.
    My goal is to get InDesign to automatically create spreads when the files are exported no matter if the document has even or odd pages? I don't want to have to create all my files with all even pages. Does anyone know how this would be possible?
    Thanks,
    Jenny

    First, this is one of those shortcomings with the current state of affairs. ID doesn't combine booked documents when exporting spreads.
    So why do you want spreads? Is this for reader proofing (readers spreads which is what you'd get if you export a single doc as spreads)? If so, why not just fix the initial view in the PDF properties dialog? Export as single pages, then set the PDF to open as facing pages with cover page.
    Or are you trying to impose into printer's spreads? That's not the same thing at all, and ID doesn't impose except through Print Booklet (but you can use that to print to PDF?
    Peter

  • Exporting photo album as a PDF?

    Hi,
    After ordering the photo album, is it possible to export the book as a PDF or a file that would be viewable on a CD?
    Jeremy

    Welcome to the Apple Discussions. Yes. Another way to share the book is to create an iDVD project of the book so it can be played on a TV with music is desired. All you need to do is do a Print ➙ PDF ➙ Save PDF to iPhoto.
    This tutorial describes how: #6 - Creating an iDVD Slideshow From an iPhoto Book.
    I always create one with every book I order, particularly if the book is to be a gift.

Maybe you are looking for