InfoHeap
Tech tutorials, tips, tools and more
Navigation
  • Home
  • Tutorials
    • CSS tutorials & examples
    • CSS properties
    • Javascript cookbook
    • Linux/Unix Command Line
    • Mac
    • PHP
      • PHP functions online
      • PHP regex
    • WordPress
  • Online Tools
    • Text utilities
    • Online Lint Tools
search

Mac Command Line tutorials

  • Bulk convert jpeg files to png using sips on mac
  • Custom terminal tab title and ssh on mac
  • How to convert text to speech on Mac using command line utility say
  • How to join multiple pdf files on Mac
  • How to use qpdf to add/remove password from pdf on mac
  • Install redis on Mac
  • Mac - find which process is listening on a port
  • Mac - hide and unhide a file or directory
  • Mac - open a terminal from a folder
  • Mac - print java home on command line
  • Mac - search files on command line using mdfind
  • Mac command line convert svg to png
  • Mac command line utility open - some handy tips for better productivity
  • Mac terminal - how to close shell on exit
  • mac pkgutil - quick start guide
 
  • Home
  • > Tutorials
  • > Mac
  • > Mac Command Line

How to join multiple pdf files on Mac

By admin | Last updated on Mar 20, 2016

Sometimes we need to combine multiple pdf files in one pdf file. This means the combined pdf will have pages from the first files and then from second files and so on. The combined file will have total number of pages which is sum of pages of individual files. Here as few ways to do it on Mac:

Using Automator utility join

Mac comes with many automator utilities. Combine PDF Pages is one of them. Here is a quick command to combine two files:

$ "/System/Library/Automator/Combine PDF Pages.action/Contents/Resources/join.py" -v -o combined.pdf input1.pdf input2.pdf
Verbose mode enabled.
Setting combined.pdf as the destination.
Creating PDF document from file input1.pdf
Creating PDF document from file input2.pdf
Copied page 1 from 
Copied page 1 from 
Copied page 2 from 

The -v option is for verbosity.

Joining pdf files using preview

Mac preview can be used to view multiple pdf files and then export them to a single pdf file. These are the instructions to combine input1.pdf and input2.pdf.

  1. First copy one file (say input1.pdf) to combined.pdf. This way we can preserve the original files.

    $ cp input1.pdf combined.pdf
    
  2. Now open combined.pdf in preview as shown below:
    mac-pdf-file-open-with-preview
  3. Now ensure than thumbnails pane is open. If it is not open, you can open it by clicking View -> Thumbnails as shown below:
    mac-preview-view-option-show-thumpnain
  4. Now move input2.pdf file on thumpnail pane. This will make pages from input2.pdf appear in thumbnails pane as shown below. Now reorder pages in desired order by dragging the thumbnails for these pages as shown below:
    mac-preview-pane-reorder-pages
    Note that you can drag multiple thumbnails also. The changed file (combined.pdf) is automatically saved. In case you make a mistake, you can use the undo option in Edit menu.

Suggested posts:

  1. How to create animated gif using Mac preview
  2. How to use preview to add password to pdf file on mac
  3. How to search files by name in Mac Finder
  4. Mac command line utility open – some handy tips for better productivity
  5. Mac – search files on command line using mdfind
  6. How to set different HTTP Expire Header for multiple images of same type
  7. Mac Finder – how to search system hidden files
  8. Linux – find and delete files older than 30 days
Share this article: share on facebook share on linkedin tweet this submit to reddit
Posted in Tutorials | Tagged Mac, Mac Command Line, Tutorials

Follow InfoHeap

facebook
twitter
googleplus
  • Browse site
  • Article Topics
  • Article archives
  • Recent Articles
  • Contact Us
  • Omoney
Popular Topics: Android Development | AngularJS | Apache | AWS and EC2 | Bash shell scripting | Chrome developer tools | CSS | CSS cookbook | CSS properties | CSS Pseudo Classes | CSS selectors | CSS3 | CSS3 flexbox | Devops | Git | HTML | HTML5 | Java | Javascript | Javascript cookbook | Javascript DOM | jQuery | Kubernetes | Linux | Linux/Unix Command Line | Mac | Mac Command Line | Mysql | Networking | Node.js | Online Tools | PHP | PHP cookbook | PHP Regex | Python | Python array | Python cookbook | SEO | Site Performance | SSH | Ubuntu Linux | Web Development | Webmaster | Wordpress | Wordpress customization | Wordpress How To | Wordpress Mysql Queries

Copyright © 2023 InfoHeap.

Powered by WordPress