Ade Malsasa Akbar contact
Senior author, Open Source enthusiast.
Sunday, April 19, 2015 at 10:57

I have many PDF files. I want to collect them into one single PDF. I want to order them so my oldest PDF will be in the beginning, and the newest is in the end. How to do it in Linux? Just use PDFSAM. This article has two main parts. First, how to merge PDF files. Second, how to split a single PDF into many PDF according of its pages.

Merging or Splitting

Usage Examples

  1. You have Scribus. You produce a magazine with it. But you design the the page one by one (because of your resource limitation) in Scribus. Export them. Then merge them into a single PDF Magazine.
  2. You have downloaded many PDF from internet. You want to join them.
  3. You have written many ebooks. You want to join them.
  4. You have a PDF. You want to split it into pages.

Install PDFSAM

By GUI, you can open Ubuntu Software Center and search for pdfsam then install it.

By Terminal, you can use this command when internet connection is available:

sudo apt-get install pdfsam

PDFSAM is a Java program. Installing it will bring Java JRE dependencies.

Merge PDF

Prepare your PDF files.
  1. Open PDFSAM.
  2. Click Merge/Extract on the left column.
  3. Click Add button on the right column.
  4. Select your PDF files here. Then Open.
  5. Sort the order of PDF by selecting a PDF then clicking on arrow button (Move Up/Move Down) on the right side.
  6. At the Destination output file, name your merged PDF. Or select your folder by Browse button.
  7. Click Run button.
  8. Check your destination folder. Your PDF is done.

Split PDF

  1. Open PDFSAM.
  2. Click Split on the left column.
  3. Click Add button on right column.
  4. Select your PDF.
  5. At the Split option, select Burst. This option will split your PDF into single pages.
  6. At the Destination folder, select your folder.
  7. At the Output options, it is best to remove the prefix.
  8. Click Run button.
  9. Check your folder. The result should be PDF files with ordered number filenames.