HT202945: OS X: Combining PDF documents using Preview

Learn about OS X: Combining PDF documents using Preview
Sharpiejeff

Q: Can I collate two .pdf files with multiple odd/even pages?

I'm scanning a document that is two-sided and my scanner only will do one side at a time.  So I end up with two documents with 30 pages each.  One is the odd-numbered pages and the other is the even-numbered.  Looking for a way to combine these two docs into one without have to manually reorder the pages after combining them.  Help?

iMac, OS X Mavericks (10.9), 20" (early 2008)

Posted on Dec 3, 2015 11:06 AM

Close

Q: Can I collate two .pdf files with multiple odd/even pages?

  • All replies
  • Helpful answers

  • by VikingOSX,

    VikingOSX VikingOSX Dec 3, 2015 1:14 PM in response to Sharpiejeff
    Level 7 (20,591 points)
    Mac OS X
    Dec 3, 2015 1:14 PM in response to Sharpiejeff

    You will need Adobe Acrobat Pro, or another PDF editor that allows you to manually reorder thumbnails. Pages sure won't do this, as it is not a PDF editor.

  • by ruggiero,

    ruggiero ruggiero Dec 4, 2015 2:53 AM in response to Sharpiejeff
    Level 1 (30 points)
    Mac OS X
    Dec 4, 2015 2:53 AM in response to Sharpiejeff

    You can easily do this with Preview.app

     

    Open both documents side by side and display their Thumbnails. Now you can simply drag-and-drop pages from one document to the other inserting the dragged page thumbnail between the proper destination document thumbnails. I think this is a pretty fast thing to do in your case. The trick is to work with the thumbnails, not the document content.

     

    Hope this helps

    ---markus---

  • by Sharpiejeff,

    Sharpiejeff Sharpiejeff Dec 4, 2015 6:42 AM in response to ruggiero
    Level 1 (0 points)
    Dec 4, 2015 6:42 AM in response to ruggiero

    Thanks for the help.  I am familiar with the drag & drop feature, but I have too many documents to reorder after they have been scanned.  This is because the documents being scanned are double-sided, so when you flip over the stack (30 pages) to scan the back side they are fed through in reverse order.  I was hoping for a link to some free software that would have a simple solution to automate this task.   Thanks for your time.

  • by Jacques Rioux,

    Jacques Rioux Jacques Rioux Dec 4, 2015 11:23 AM in response to Sharpiejeff
    Level 4 (3,408 points)
    Mac OS X
    Dec 4, 2015 11:23 AM in response to Sharpiejeff

    Hi,

     

    It's possible with an Automator workflow:

     

    Open the Automator application.

    Make an workflow like this:

    workflowCombine.png

     

    Important:

    The order of the PDF files in the "Get Specified Items" action:

    The PDF file which contains odd pages should be in the first row.

    The PDF file which contains even pages should be in the second row.

    edited: the order of the PDF files in my first image is not correct.

     

    You must check the "Shuffling pages" case in the "Combine PDF Pages" action

     

     

    ------

     

    If you want an workflow that puts the PDF files to the trash and rename and move the new PDF file to the same folder as the original PDF file, make an workflow like this:

     

    workflowAndVariable.png

    Insert the variable named "Stockage" to this workflow

    Here's the script to put in the "Run AppleScript" action

    on run {input, parameters}
        set newPDF_path to item 1 of input -- the combined PDF
        set tName to name of (info for (item 2 of input))
        tell application "Finder"
            set parentFolder to container of (item 2 of input)
            delete items 2 thru 3 of input -- move the original PDF files to trash
            move newPDF_path to parentFolder -- move the combined PDF file to the same folder
            set name of newPDF_path to tName -- rename the combined PDF file to the name of document which contains the odd pages
        end tell
        return newPDF_path
    end run
    
  • by hipersons,

    hipersons hipersons Apr 14, 2016 3:28 PM in response to Jacques Rioux
    Level 1 (4 points)
    Apr 14, 2016 3:28 PM in response to Jacques Rioux

    This worked perfectly and simply. The most sane and easy to implement of all the options I've found after an hour of googling and trying.