TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. 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 am trying to merge separate PDF files, following this advice.


Now I would like to keep the page numbering as it is in file 1. File 2 has no page numbering so I would manually set the counter and turn on page numbering. I tried


but it didn't help: the page numbering didn't appear.

How can I turn on/off page numbering when merging separate PDF files?

Sad news: the url-s break down too.

share|improve this question
up vote 5 down vote accepted

You can use pagecommand option as in:


Adjust the values appropriately.

In this example, watch the fourth page and that has page number of 25.

enter image description here

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.