combine multiple files into a single

Hi all

Request:

1. the need to combine several files into a single

2. the user already created destination doc

3 folder contains about 30 files (all files having 1 page only)

4. the need for a

Script:

1. to receive the forum script (combine multiple documents)

2. using the forum script, the output comes wrongly (comes side by side)

Fault output using the script below:

Screen Shot 2015-05-31 at 8.05.38 PM.png

Power required:

Screen Shot 2015-05-31 at 8.08.48 PM.png

Slightly modified:

#target indesign
// set the destination document as the active document.
var destination_doc = app.activeDocument;
destination_doc.documentPreferences.allowPageShuffle = true;  
destination_doc.spreads[-1].allowPageShuffle = true;  

// select the source folder
var sourceFolder = Folder.selectDialog("Select a folder with source InDesign files.");
var fileList = sourceFolder.getFiles();
fileList.sort();

for ( var i = 0; i < fileList.length; i++ ) {
    var source_file = fileList[i];
    
    if ( source_file instanceof File && source_file.name.match(/\.indd$/i)) {
        app.open(source_file);
        var source_doc = app.open(source_file);  
        var sourcePages = app.activeDocument.pages.item(0);
        sourcePages.duplicate(LocationOptions.AFTER, source_doc.pages.item(0));
        sourcePages.move(LocationOptions.AFTER, destination_doc.pages.item(-1));
        app.activeDocument.close(SaveOptions.NO);
    }
}

Thanks in advance

Siraj

Hello

You should duplicate/move a spread instead of a page.

Try simply change around L18 - 20 as below.

        var source_doc = app.open(source_file);
        var sourceSpreads = app.activeDocument.spreads.item(0);
        sourceSpreads.duplicate(LocationOptions.AFTER, source_doc.spreads.item(0));
        sourceSpreads.move(LocationOptions.AFTER, destination_doc.spreads.item(-1));
        app.activeDocument.close(SaveOptions.NO);

Thank you

Tags: InDesign

Similar Questions

  • Combine multiple files into a single file adobe adobe - do I need to buy additional products other than the adobe reader software

    I don't seem to be able to combine multiple adobe files into a single adobe document.  Do I need to buy an additional product for this in adobe reader?

    Hi Art Brock,

    You can buy the Adobe PDF package to combine the files using Adobe Reader, if you must use Acrobat Reader DC for this task.

    You can purchase the subscription by using the following link: online PDF converter, convert to web or Acrobat Reader | Adobe PDF Pack

    Kind regards
    Rahul

  • InDesign CS5 - combine multiple files into a single

    I use InDesign CS5.

    My question is how can I combine several documents into one?

    I want to create a new document. I then want to choose a bunch of documents to a folder. So I want the selected statement placed at the end of the original document one by one until all selected documents have been placed.

    From the GUI, I understand it is the goal of available > > Pages > > Pages to move. How could I do with a script?

    http://indisnip.WordPress.com/2010/08/09/moveduplicate-pages-between-documents/

  • I have adobe reader xi and can not find the "create button" in order to combine several files into a single pdf

    I have adobe reader xi and can not find the "create button" in order to combine several files into a single pdf

    Hello

    Reader is software to view PDF' only.

    You must either a pack PDF to perform the function of thin or Acrobat.

    Reader is not the software to perform editing functions.

    Concerning

    Sukrit diallo

  • I paid Adobe on a monthly basis for the SERVICE to be able to COMBINE (pdf) files into a SINGLE (!).  HOW DO TO THIS PAGE TO DO!

    I paid Adobe on a monthly basis for the SERVICE to be able to COMBINE (pdf) files into a SINGLE (!).  HOW DO TO THIS PAGE TO DO!

    Hi Richa,

    Could you please send me the adobe on a personal message identification code so that I can see the exact subscription that you have purchased.

    You can check the link below for instructions.

    Document help Cloud | With the help of Adobe PDF Pack

    Hope this will help you.

    Kind regards

    Hervé Khare

  • Can I combine multiple files into a PDF TIF?

    Can I combine multiple TIF files in a PDF using Acrobat DC.  I have the paid version.

    Yes, via file - create - combine files into a single PDF...

  • How can I convert multiple files into a single PDF?

    I need to convert a single file PDF 3 pages of a contract.  How can I do this?

    Hi millionaire Blackburn.

    I checked your account - looks like you have a subscription Pack PDF Adobe, so that's great!

    1. Sign in to your account at https://cloud.acrobat.com/combinepdf using your Adobe ID and password.
    2. Click on the selected files to be combined.
    3. Select the files you want to combine into a single PDF.
    4. (Optional) Drag the thumbnails of files in the order you want that individual to combine files.
    5. Click on combine.

    Please let us know how it goes!

    Best,

    Sara

  • Is it possible to combine several files into a single pdf without saving them on your computer?

    Hello

    I open pdf files in an application (No Add ons for acrobat exist) and want to combine without using time on saving them before their merger into a single document.

    Is it possible to do without the files saved on your computer? I use acrobat x pro.

    If you have opened a file, this means that you have a copy of it on your local

    machine, even if it is just a temporary file. It will not work otherwise.

  • Using Acrobat Distiller API to combine several files into a single PDF

    I am trying to automate a process and I need to take 4 + pdf files and combine them into a single PDF.  I see in Acrobat Adobe Pro 8 that I can use the icon to "combine" in the toolbar, but my users want this process to be automated.  Is there an API or some way I can do this?  I put the API / code in an Access 2007 application.  I read on the Distiller API, but do not know if it is something that I can use in my access database to call via accomlish and vba code, that.  Need help to determine the best way to achieve this...
    Thank you

    No - it's something you need on your development computer.  It contains all the necessary documents, code examples, etc in order to teach you how to develop with Acrobat.

  • Why combine multiple PDFs into a single pdf stop working?

    Why would "Combining pages into a single pdf document" just stop working?

    He worked two days ago.

    Now does not open the window of combine on OSX 10.9.5

    With the help of Acrobal pro VI

    It does not freeze and the other elements work always.

    The "Handset" command simply has nothing.

    I uninstalled the program and reinstalled.

    Acrobat Pro VI

    No change. Still, the cartel control does not.

    I have tried on several different .pdfs and also from the main menu.

    What is confusing is that it worked a few days earlier.

  • Click on the link that executes JavaScript to combine multiple PDFs into a single pdf file

    I provide a USB that contains about 4 GB of various PDF files in different folders. I would like to have a link/button in a particular PDF file that would combine several PDF files to another folder in a single PDF file to view or print. This USB key will be used on Mac and PC. Users will be responsible also for all of files on a tablet or iPad to take meetings. I am able to do this if I know the absolute path to the files, but not when the path is a parent. Did anyone done this before? Suggestions?

    Thank you.

    It is impossible in the drive.

  • Combining multiple layers into a single

    Hey guys,.

    hope its pretty clear in the title, working on a project and I have several layers that I would like to convert in a single layer. I hope the screenshot helps.

    2015-12-31.png

    Precompose them.

  • Combine multiple statements into a single merge?

    Hi all

    I'm stuck with a situation here that I've ever met. I will try to describe below. I'm running it in Oracle 10 g.

    TABLE_A is empty before the start of the process. TABLE_B has a few million lines. Rest a few thousand.

    INSERT the TABLE_A

    SELECT * FROM TABLE_B;

    MERGE the TABLE_A

    With the HELP of TABLE_C

    ON TABLE_A.PID = TABLE_C.PID

    WHEN MATCHED

    UPDATE

    WHEN NOT MATCHED

    INSERT;

    MERGE the TABLE_A

    With the HELP of TABLE_D

    ON TABLE_A.PID = TABLE_D.PID

    WHEN MATCHED

    UPDATE

    WHEN NOT MATCHED

    INSERT;

    MERGE the TABLE_A

    With the HELP of TABLE_E

    ON TABLE_A.PID = TABLE_E.PID

    WHEN MATCHED

    UPDATE

    WHEN NOT MATCHED

    INSERT;

    due to the huge amount of data, the merge statement has faced every time that it runs, it consumes a lot of time (hours) to run. Is it possible to rewrite above fusion sql in a sql statement using outer joins? I tried a few approaches, but none seems to be practical. Please shed some light on the question, if you find a way more right to do the same thing.

    Thank you

    Without any code and actual tables, all I can do is to guess:

    Fusion in table_a a

    using (select... table_c

    Union of all the

    Choose option... table_d

    Union of all the

    Choose option... table_e

    ) u

    on (u.pid = a.pid)

    When matched...

    When not matched...

    But I don't know if there are keys duplicated on other tables.  If there is, you will get the unstable set of lines error.

  • Acrobat 9 Pro: "merge files into a single PDF" creates blank pages

    I have a similar problem in a previous post (which received no response).

    I am able to pdf documents fine Word, but when I try to combine > merge files into a single pdf, pdf pages that result are all empty. I do not receive any error messages or have problems to save the file.

    I use Adobe Acrobat 9 Pro (9.5.1) on Windows 7.

    Merging pdf files did not work at all since I installed the program.

    Any help would be appreciated.

    I would like to try a repair before a reinstall. If you perform a reinstall, be sure to disable everything first.

    How are you trying to merge. This may be a feature added by AA X and I do not have, but the details are always useful. What happens if you simply open one and then use the Document > insert Pages (or as much as Adobe may have set this time) and add a document at the end of the first?

  • How to combine multiple PDFs into one document?

    A printer told me some time ago when I bought a few things, I can combine PDF files into one pdf. Can someone tell me how you do it, and do this with pdf that are the size of the different documents? I'm an invitation, program, cards and certificates for an awards ceremony, and wanted to know if I can combine all my pdf in a big pdf, even if they are all of different sizes.

    Thanks for any help!

    Even easier in Acrobat 9 (have nothing installed earlier to check): file > combine > merge files into a single PDF file...

    You must have a full version of Acrobat, possibly Pro, player not only.

Maybe you are looking for