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

That's all I have to do: remove only 1st page from a LOT of pdf files...

Please tell me that magic exists.

share|improve this question
Piece of cake! Linux wins, again. If none answer I have my own answer to post :) – Pitto Jun 4 '12 at 15:30
Post your solution anyways. Regardless if others answer. – Thomas Ward Jun 4 '12 at 15:38
up vote 9 down vote accepted

You can do this with a free program called pdftk, available here.

You can use the following commands to take every PDF in the current directory and copy them to the ‘trimmed’ directory with the first page removed:

mkdir trimmed
for i in *pdf ; do pdftk “$i” cat 2-end output “trimmed/$i” ; done
share|improve this answer

This looks like a job for PdfToolKit. This a command line utility to manipulate pdfs

First, install PDFToolkil, either from the Software Centre or using the command line:

sudo apt-get install pdftk

Now the command to remove the first page from a normal (non-protected pdf) would be:

pdftk original.pdf cat 2- output outputname.pdf

If the pdf is protected you will need to give the passwords to pdftk.

To convert a large number of pdf's you will need to write a small script that takes care of running pdftk for each one.

share|improve this answer
You may need to use the keyword end with the cat parameter. Like this pdftk original.pdf cat 2-end output outputname.pdf. It was throwing a 'unexpected range end' for me without it. – Elijah Lynn Jan 16 '15 at 20:16

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.