You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

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

Reply
Question marked as Top-ranking reply

Posted on Dec 4, 2015 11:23 AM

Hi,


It's possible with an Automator workflow:


Open the Automator application.

Make an workflow like this:

User uploaded file


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:


User uploaded file

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
6 replies
Question marked as Top-ranking reply

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:

User uploaded file


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:


User uploaded file

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

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.

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---

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

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.