Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to combine two pages in pdf file into single page.

Consider I have a pdf file in which there are two pages, now I want to combine two pages into (single) one, No-matter for (how-long) page-size!

How to do that?

Note: This question is not about combine two pdf files or merging pdf files or adding pages in pdf files.

Also visit Question about scaling page in pdf.

share|improve this question

PDFJam (Not a GUI app)

Multiple pages can be combined with it.

sudo apt-get install pdfjam

Then you need to use the pdfnup command to combine pages:

pdfnup -2 [INPUT].pdf [OUTPUT].pdf

This will combine two input pages per one output page.

Refer to man pdfnup for more details.

Also refer this Stackoverflow question.

share|improve this answer

PDF-Shuffler is a GUI PDF app that allows you to merge, shuffle and delete PDF pages.

Install with;

Sudo apt-get install pdfshuffler

Good luck.

share|improve this answer
Unfortunately this is only good for simple reordering of pages and merging documents. The question appears to be about merging pages within a single document. – Oli Jul 21 '14 at 11:19

You can use ghostscript to combine various pdf documents into one, using the following command in terminal:

assuming we have two pdf documents named doc1.pdf and doc2.pdf and we want to combine them into a newly document named combined.pdf

gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=combined.pdf -dBATCH doc1.pdf doc2.pdf

or for all files in directory

gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=combined.pdf -dBATCH *.pdf
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.