33 Replies Latest reply on Mar 8, 2016 4:59 PM by Greavsie1940

    How to combine multiple files in CS6

    cjsuplee@comcast.net Level 1

      I am trying to combine multiple files-- book chapters-- into a single editable document in CS6. Tutorials apprea outdated

        • 2. Re: How to combine multiple files in CS6
          Willi Adelberger Most Valuable Participant

          Create a book (File > New > Book…)

          Put these single files as chapter in the bokk and leave them as separate files. From the book panel you can output these files as single PDF or whatever you want.

          • 3. Re: How to combine multiple files in CS6
            cjsuplee@comcast.net Level 1

            It is still a mystery.  I choose + in the book file box and just once I was somehow able to insert one file from my book. From then on, in the add documents box,  it wanted only to resave the next file to its home file again.  A vicious circle. Could never get a second file to import. I am on an Imac Lion OSX. Is that the hangup? It is frustrating!!!!!!!!!!  I have deleted all tries (not my files) but so far have spent too many hours trying to make it work. I also watched another tutorial that did not produce any results.

             

            But thanks for trying to help. Not sure what I can do now. I am using CS6.

             

            Carol

            • 4. Re: How to combine multiple files in CS6
              Ellis home Level 4

              Your chapters need to be Indesign documents (each one) to be able to add them to the book file.

              • 5. Re: How to combine multiple files in CS6
                Willi Adelberger Most Valuable Participant

                As Ellis said, all files have to be INDD.

                But you can select several files in one single step select to add to the book panel, you can also drag the files from the desktop, finder, explorer or from Bridge into the book panel.

                On the Mac you can also drag the small icon on the top of the window of an open file directly into the book panel.

                Are all files from the same InDesign version? If not, save them again first as INDD.

                (You could also convert them from the book panel by activating that option.)

                • 6. Re: How to combine multiple files in CS6
                  cjsuplee@comcast.net Level 1

                  Thanks so much I'll try again but I have done all these things. Yes, the files are all in the same version of ID. Dragging does not work at all.  I am not a computer illiterate, either, so it is all the more puzzling. I do so appreciate your help and will certainly try again.

                  Carol J. Suplee

                  [Personal Information Removed by moderator]

                  • 7. Re: How to combine multiple files in CS6
                    Sandee Cohen Adobe Community Professional

                    Carol,

                     

                    I think what you wanted in your original post is not what has been suggested for you.

                     

                    You wanted all the files in a single, editable, InDesign document. Why?

                     

                    If you want to be able to export as a single PDF, you don't have to merge your files together.

                     

                    Creating a Book file can allow you to export and print a range of documents together. But each document would still be a separate file.

                     

                    But if it is vital that all the pages be in one actual file, then you can use the Move Pages command in the Pages panel to move pages from one file to another.

                     

                    So, what exactly do you want to do?

                    • 8. Re: How to combine multiple files in CS6
                      cjsuplee@comcast.net Level 1

                      They are all in the same version since they are chapters of the same book. That is not the problem. Not sure what it is but it's crazy. Thanks for helping.

                      • 9. Re: How to combine multiple files in CS6
                        cjsuplee@comcast.net Level 1

                        I need to combine the chapters of a book, now in separate ID files, into one file so it can be converted to an E-book.  I wrote the chapters separately to protect against massive loss of data, by some unforeseen circumstance,  and it has worked extremely well. The original printer also preferred it that way, since it was a small house and needed the flexibility to change folios, etc.  But now it must be combined. I appreciate your help.

                        Carol J. Suplee

                        • 10. Re: How to combine multiple files in CS6
                          Willi Adelberger Most Valuable Participant

                          Can you give us a little more exact description what you are doing, step by step. So we might detect the problem.

                          BTW: Remove your personal information.

                          • 11. Re: How to combine multiple files in CS6
                            BobLevine MVP & Adobe Community Professional

                            Carol, be careful when replying by email. I don't think you really want all of your personal info here.

                             

                            I've edited your address and phone number out of the last post.

                            • 12. Re: How to combine multiple files in CS6
                              cjsuplee@comcast.net Level 1

                              I  will try to document what I am doing then pass it on.  Thanks again

                              • 13. Re: How to combine multiple files in CS6
                                Willi Adelberger Most Valuable Participant

                                You can also export an EPUB out from a book file. There is nothing which would force you to do it in a single document.

                                • 14. Re: How to combine multiple files in CS6
                                  Sandee Cohen Adobe Community Professional

                                  Carol,

                                   

                                  Here's a section from my Visual Quickstart Guide that should help you make the book file.

                                   

                                  https://dl.dropboxusercontent.com/u/4819319/making_a_book_file.pdf

                                  • 15. Re: How to combine multiple files in CS6
                                    cjsuplee@comcast.net Level 1

                                    Thanks a million. It was a mistake.  I will be careful. C

                                    • 16. Re: How to combine multiple files in CS6
                                      cjsuplee@comcast.net Level 1

                                      Good of you to do this. I will work on it. Carol

                                      • 17. Re: How to combine multiple files in CS6
                                        Michael Witherell Adobe Community Professional

                                        You know, on occasion, I have wanted to take a well-made Book with its separate documents and combine them into only one document. I have never seen a script to do this. Does anyone know of a script or plug-in that can accomplish this?

                                         

                                        Mike Witherell in Maryland

                                        • 18. Re: How to combine multiple files in CS6
                                          Sandee Cohen Adobe Community Professional

                                          Hi Mike,

                                           

                                          I found this page of a script. It was originally created for CS5 so there is some question as to how it will work with today's versions.

                                           

                                          http://www.simonwiscombe.com/archives/459

                                          • 19. Re: How to combine multiple files in CS6
                                            Michael Witherell Adobe Community Professional

                                            Thanks, Sandee! This looks like a script which is a little over one month old. I will give it a try! Thanks again!

                                             

                                            Mike Witherell

                                            • 20. Re: How to combine multiple files in CS6
                                              vectorbabe Level 1

                                              Let us know if it works.

                                              --

                                              Sandee Cohen

                                              Computer Graphics Trainer

                                              • 21. Re: How to combine multiple files in CS6
                                                cjsuplee@comcast.net Level 1

                                                Hi all-- It didn't  work -- I do not understand the process of "designating an active doc"  and what then follows etc.    I am not a techie, I am a writer with certain albeit limited  techie skills.   I feel there must be a flaw in my own software. What should work simply as a book project, does not, despite all the expert advice. It is a huge problem because I MUST combine these chapters.  Here's the weird thing:  I followed directions to add a document to the book.  Before the doc showed up in the book panel, I had to save it back to the folder (dialogue box instruction) .   Then it asked if I wanted to replace that file. I had to say yes.  Then the doc showed up in the book panel. However, the files I replaced (not to worry, I have all originals and was working with a copy)  had crazy page numbers --Page 3  became page 22.  etc.  -- and when I tried to open the file in the book panel, message said doc was missing. I had to mark my folder copy unusable because of the page changes.  I really can't risk messing up my original.  My e book publisher will accept a pdf and I understand (perhaps foolishly) that I actual can create one pdf from all the files. But that makes it cast in stone and uneditable. Of course, that leaves me the option of editing each chapter again which I will do and then convert to pdf, but that is certainly not preferable. It's a software muddle. Thanks to you all. I am so impressed with your efforts to help a stranger. Carol

                                                • 22. Re: How to combine multiple files in CS6
                                                  Ellis home Level 4

                                                  Carol, sorry you're having trouble putting together the book which should be a straight forward process. Unfortunately I don't have a Mac to try to replicate your problem. But just to summarize: you have all the book's chapters as separate ID documents. You go to File/New/Book, name your book and save it. The book panel screen pops up with the name of your book on top. You click the +, choose say chapter 1 and it is added to the book. Click + again, choose chapter 2 and that's when the problem starts. Is that right? Usually when we cannot figure out what the problem might be we ask the user to post some screen shots. Are you able to do that? May be of the book panel and what you see when you try to add a second chapter?

                                                  • 23. Re: How to combine multiple files in CS6
                                                    Willi Adelberger Most Valuable Participant

                                                    What I don't understand, why you have to combine all files into one file? EPUB export needs not a single file. In the past, up to CS5, I did the contrary, I had to split up books in different files to get a useful EPUB. No both ways are OK, one single document where you can split up via Paragraph Style the book's package files or exporting from an .indb file to EPUB.

                                                    I think you are wasting a lot of energy to bring together different documents into a single one.

                                                    And I also think that, when I and some others speak about an InDesign book file we mean a different thing as you do. We talk about an .indb file, you talk obviously about a merged .indd file.

                                                    • 24. Re: How to combine multiple files in CS6
                                                      cjsuplee@comcast.net Level 1

                                                      You make a good point. The publisher I would like to use (because of high recommendations) requires a single file. I am using a .indb book file.  I am successful in placing a few chapters but when I open them the page numbers are bizarre.  I am going to contact the publisher (and I can speak to a human being) and see if I am on the wrong track. Thanks to all of you!! I will report back. C

                                                      • 25. Re: How to combine multiple files in CS6
                                                        cjsuplee@comcast.net Level 1

                                                        Thanks for the offer. I may try that, but have to postpone my efforts for a few days. I have to focus on an important appt. with a possible grantor.  I will give it a shot, however, and I thank you.

                                                        • 26. Re: How to combine multiple files in CS6
                                                          cjsuplee@comcast.net Level 1

                                                          To all those who tried to help with my problem: combining 26 chapters of a book into one ID doc-- many thanks.  Well, I discovered the method and I must confess, it's simple and straightforward -- labor intensive to be sure -- but simple.  I kept looking for a way to "combine" but that function was lurking behind two other words "Move pages."  Duh. True, the ID method is obscure and not clearly explained anywhere I could find.  But I found that beginning with the first document, one can "move pages"  from subsequnet chapters to the end of the one preceding. I know-- sounds simple. I heartily thank all of you. You actually did lead me to the solution.  Carol

                                                          • 27. Re: How to combine multiple files in CS6
                                                            seb400 Level 1

                                                            Hi Carol, thanks for your efforts with this issue - very useful.

                                                            Like you I have the same requirement, but given that the process is menu driven I would have thought that someone would have devised a script. Will have to see if I can post a script request somewhere.

                                                             

                                                            Steve

                                                            • 28. Re: How to combine multiple files in CS6
                                                              Colin Flashman Adobe Community Professional

                                                              following on from Sandee Cohen's post no.18, the location of the script has moved to:

                                                               

                                                              http://www.simonwiscombe.com/indesign-merging-all-files/

                                                               

                                                              and it is worth noting that the script initially merged files that were all 1pp long each.

                                                               

                                                              Simon did make a modification to it later on in the article so that the script would merge files of all lengths, but when I ran the script, it produced an error to do with line 18. The line:

                                                               

                                                              var sourceFolder = Folder.selectDialog(“Select a folder with source InDesign files.”);

                                                               

                                                              needs to be replaced with

                                                               

                                                              var sourceFolder = Folder.selectDialog('Select a folder with source InDesign files.');

                                                               

                                                              (double quotes were swapped out for single quotes)

                                                               

                                                              I have only tested the script with varying page lengths with minimal objects on the pages to determine if the files merged. So far so good. The earlier version that merged 1pp files only would fail if fonts/links were missing as any dialog box upon opening seems to interfere with the script. I feel that the newer script will do the same thing.

                                                               

                                                              I know this is an older thread but given I just had the same experience, I thought the revised script would help a few people.

                                                               

                                                              Colin

                                                              • 29. Re: How to combine multiple files in CS6
                                                                biozaichenko Level 1

                                                                Here is a full script that combines files from a book or a folder or all opened files. It has a simple interface so you can start running it independently of what you have opened.

                                                                 

                                                                /*Written and updated by Michael Z.

                                                                    Allows merging of files from active book or all opened documents or any chosen folder with all its subfolders.

                                                                    Allows to change the sequence of files before producing the final file.

                                                                    Allows to remove unneeded files before producing the final file.

                                                                    Allows to maintain page numbers from original documents.

                                                                    Allows to maintain original sections.

                                                                */

                                                                 

                                                                #targetengine session

                                                                 

                                                                var list = {}, folder = "", lst = [], sn, pn, run = false;

                                                                 

                                                                var comp = new Window ("dialog {margins:5, spacing:5, text:'Merger'}");

                                                                var grComp = comp.add ("group {margins:5, orientation:'column'}");

                                                                 

                                                                var fileLst = grComp.add ("listbox", [0,0,210,250]);

                                                                fileLst.helpTip = "Press up or down keys to move items in the list.\nPress Delete to remove an item.";

                                                                fileLst.addEventListener ("keydown", function (k) {

                                                                    if (k.keyName == "Up") {

                                                                        var n = fileLst.selection.index;

                                                                        if (n > 0) {

                                                                            swap (fileLst.items [n-1], fileLst.items [n]);

                                                                        }

                                                                    }

                                                                    if (k.keyName == "Down") {

                                                                        var n = fileLst.selection.index;

                                                                        if (n < fileLst.items.length-1) {

                                                                            swap (fileLst.items [n], fileLst.items [n+1]);

                                                                        }

                                                                    }

                                                                    if (k.keyName == "Delete") {

                                                                        var sel = fileLst.selection.index;

                                                                        fileLst.remove (fileLst.items[sel]);

                                                                        if (sel > fileLst.items.length-1)

                                                                            fileLst.selection = fileLst.items.length-1;

                                                                        else

                                                                            fileLst.selection = sel;

                                                                    }

                                                                });

                                                                 

                                                                var rbComp = comp.add ("panel {margins:5, spacing:0, orientation:'column', size:[210,90]}");

                                                                var aodocs = rbComp.add ("radiobutton {text:'All opened documents'}", [0,0,195,20]);

                                                                aodocs.onClick = function () {

                                                                    fileLst.removeAll ();

                                                                    if (app.documents.length>0) {

                                                                        for (i = 0; i < app.documents.length; i ++) {

                                                                            fileLst.add ("item", app.documents[i].name);

                                                                            list [app.documents[i].name] = app.documents[i].fullName;

                                                                        }

                                                                    } else {

                                                                        alert ("No documents opened.");

                                                                        aodocs.value = false;

                                                                        return;

                                                                    }

                                                                }

                                                                 

                                                                var abdocs = rbComp.add ("radiobutton {text:'Active book documents'}", [0,0,195,20]);

                                                                abdocs.onClick = function () {

                                                                    fileLst.removeAll ();

                                                                    if (app.books.length>0) {

                                                                        for (i = 0; i < app.activeBook.bookContents.length; i ++) {

                                                                            fileLst.add ("item", app.activeBook.bookContents[i].name);

                                                                            list [app.activeBook.bookContents[i].name] = app.activeBook.bookContents[i].fullName;

                                                                        }

                                                                    } else {

                                                                        alert ("No books opened.");

                                                                        abdocs.value = false;

                                                                        return;

                                                                    }

                                                                }

                                                                 

                                                                var flddocs = rbComp.add ("radiobutton {text:'All documents in a folder'}", [0,0,195,20]);

                                                                flddocs.onClick = function () {

                                                                    fileLst.removeAll ();

                                                                    var bf = Folder.selectDialog ("Select folder with files.");

                                                                    if (bf) {

                                                                        var myFileList = bf.getFiles ("*.indd");

                                                                        for (var i = 0; i < myFileList.length; i++) {

                                                                            var myFile = myFileList [i];

                                                                            list [myFile.displayName] = myFile.fsName;

                                                                            fileLst.add ("item", myFile.displayName);

                                                                            folder = bf.fsName;

                                                                        }

                                                                    }else {

                                                                        alert ("No folder selected.");

                                                                        flddocs.value = false;

                                                                        return;

                                                                    }

                                                                }

                                                                 

                                                                var fldAlldocs = rbComp.add ("checkbox {text:'Including subfolders'}", [15,0,180,20]);

                                                                fldAlldocs.onClick = function () {

                                                                    if (Folder (folder).exists && fldAlldocs.value == true) {

                                                                        fileLst.removeAll ();

                                                                        var myFileList = getSubFolders (Folder (folder));

                                                                        for (m in myFileList) {

                                                                            fileLst.add ("item", m);

                                                                        }

                                                                    }else {

                                                                        alert ("No folder selected.");

                                                                        fldAlldocs.value = false;

                                                                        return;

                                                                    }

                                                                }

                                                                 

                                                                 

                                                                var secComp = comp.add ("panel {margins:5, spacing:0, orientation:'column', size:[210,50]}");

                                                                var sec = secComp.add ("checkbox {text:'Keep sections'}", [0,0,195,20]);

                                                                var pgNum = secComp.add ("checkbox {text:'Keep page numbers'}", [0,0,195,20]);

                                                                sec.onClick = function () {

                                                                    if (sec.value == false)

                                                                        pgNum.value = false;

                                                                }

                                                                pgNum.onClick = function () {

                                                                    if (sec.value == false)

                                                                        sec.value = true;

                                                                }

                                                                 

                                                                var btnComp = comp.add ("panel {margins:5, orientation:'row', size:[210,35]}");

                                                                var okBtn = btnComp.add ("button {text:'OK', size:[90,20]}");

                                                                var cancBtn = btnComp.add ("button {text:'Cancel', size:[90,20]}");

                                                                 

                                                                function swap (x, y) {

                                                                    var temp = x.text;

                                                                    x.text = y.text;

                                                                    y.text = temp;

                                                                }

                                                                 

                                                                okBtn.onClick = function () {

                                                                    for (i = 0; i < fileLst.items.length; i ++)

                                                                        lst.push (fileLst.items[i].text);

                                                                    sn = sec.value;

                                                                    pn = pgNum.value;

                                                                    run = true;

                                                                    comp.close ();

                                                                }

                                                                 

                                                                cancBtn.onClick = function () {

                                                                    comp.close ();

                                                                }

                                                                 

                                                                comp.show ();

                                                                 

                                                                if (run) {

                                                                    app.doScript (function () {

                                                                        app.scriptPreferences.userInteractionLevel=UserInteractionLevels.NEVER_INTERACT;

                                                                        var doc0 = app.open (File (list[lst[lst.length-1]]), true, OpenOptions.OPEN_COPY);

                                                                        var face = doc0.documentPreferences.facingPages;

                                                                        doc0.documentPreferences.facingPages = false;

                                                                        for (a = lst.length - 2; a > -1; a --) {

                                                                            var tmpdoc = app.open (File (list[lst[a]]), false, OpenOptions.OPEN_COPY);

                                                                            tmpdoc.documentPreferences.facingPages = false;

                                                                            tmpdoc.pages.everyItem ().duplicate (LocationOptions.BEFORE, doc0.pages[0]);

                                                                            if (sn)

                                                                                doc0.pages[0].appliedSection.continueNumbering = false;

                                                                            if (pn) {

                                                                                doc0.sections.add (doc0.pages[0], {pageNumberStart:tmpdoc.pages[0].appliedSection.pageNumberStart});

                                                                                doc0.pages[0].appliedSection.pageNumberStyle = tmpdoc.pages[0].appliedSection.pageNumberStyle;

                                                                            }

                                                                            tmpdoc.close (SaveOptions.NO);

                                                                        }

                                                                        if (!sn && doc0.sections.length > 1)

                                                                            doc0.sections.itemByRange (1, doc0.sections.length-1).remove ();

                                                                        doc0.documentPreferences.facingPages = face;

                                                                        app.scriptPreferences.userInteractionLevel=UserInteractionLevels.INTERACT_WITH_ALL;

                                                                    }, ScriptLanguage.JAVASCRIPT, [], UndoModes.ENTIRE_SCRIPT, "Merge Documents");

                                                                }

                                                                 

                                                                function getSubFolders (theFolder) {

                                                                    var myFileList = theFolder.getFiles ();

                                                                    for (var i = 0; i < myFileList.length; i++) {

                                                                        var myFile = myFileList [i];

                                                                        if (myFile instanceof Folder) {

                                                                            getSubFolders (myFile);

                                                                        }

                                                                        else if (myFile instanceof File && myFile.name.match (/\.indd$/i)) {

                                                                            list [myFile.displayName] = myFile.fsName;

                                                                        }

                                                                    }

                                                                    return list;

                                                                }

                                                                • 30. Re: How to combine multiple files in CS6
                                                                  cjsuplee@comcast.net Level 1

                                                                  Thank you so much. I am not sure how to  implement this (I am a writer, not much of a techie) but I have a pal who can help. Thanks!

                                                                  • 31. Re: How to combine multiple files in CS6
                                                                    bfav001 Level 1

                                                                    Loving the CC we can move pages from one indesign to the other, with alternative dimensions.. wow.. blessing

                                                                    • 32. Re: How to combine multiple files in CS6
                                                                      Hoochalaffa Level 1

                                                                      Just what the doctor ordered. This script works on InDesign CC 2015.

                                                                      • 33. Re: How to combine multiple files in CS6
                                                                        Greavsie1940 Level 1

                                                                        Very many thanks for this. I've been looking for a script to do this for months. I have several hundred books where a previous regime did chapters as single files (and all text was set to "Normal"). We steadily working to update everything. I had mastered drag and drop combining, but it is time consuming, especially with an arthritic shoulder!