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 have a problem when I insert a PDF file in LaTeX:



The problem is that the PDF page is not centered:


I've tried to place tags center, but nothing works.

Thank you for your response.

I still have the same problem.

For a good layout, I have to do this:

\includepdf[pages=1,pagecommand={},offset=-2.5cm -3cm]{file.pdf}
\includepdf[pages=2,pagecommand={},offset=2.5cm -3cm]{file.pdf}
\includepdf[pages=3,pagecommand={},offset=-2.5cm -3cm]{file.pdf}
\includepdf[pages=4,pagecommand={},offset=2.5cm -3cm]{file.pdf}
\includepdf[pages=5,pagecommand={},offset=-2.5cm -3cm]{file.pdf}

This is very annoying. I want to insert a PDF of 50 pages, I can not insert page by page ...

I tried


But all pages of the PDF are superimposed on one page!

And with \usepackage[pdftex]{graphicx} I have an error :

! LaTeX Error: Option clash for package graphicx

Please help me!

P.S. I use a model given by my university. In this model, we find this:

%----- Dimensions -----
\addtolength{\textheight}{-5.7cm} % 24cm
\addtolength{\textwidth}{-4cm} % 17cm
\setlength{\parskip}{1ex plus 0.5ex minus 0.2ex}

If I remove this:


the layout of the PDF is OK, but the rest is bad!

share|improve this question

migrated from stackoverflow.com Mar 27 '13 at 17:14

This question came from our site for professional and enthusiast programmers.

Can you provide a minimal working example of your code? – Juri Robl Mar 27 '13 at 18:15
By default pages are centered and it works fine for me. So it looks as if either your pdf has curious margins or your pdfpages version has a bug. Beside this: pdfpages has a documentation which also contains a section which describes how to move the pdf around. – Ulrike Fischer Mar 28 '13 at 7:37
up vote 19 down vote accepted

I found the solution :



\includepdf[pages=-, offset=75 -75]{file.pdf}

And it works !

share|improve this answer

I would say: put the page inside a figure environment and use the \centering command. It's action should be restricted to the figure.


Note that a simple \includegraphics{file.pdf} should to the trick, no need for extra packages. i.e. this a working code for me:




Moreover, this allows the use of additional scaling options such as \includegraphics[scale=0.50]{file.pdf}, etc.

share|improve this answer
Have you tried this? Moreover graphicx's \includegraphics doesn't really need the driver pdftex explicitly specified, since it's picked up by the method of compilation. – Werner Mar 27 '13 at 19:08
Oops! Typo, I'll edit my post to reflect that. Otherwise, I never used pdfpage, but I used the includegraphics variant countless times :) – jgyou Mar 27 '13 at 19:34
This actually only work if your PDF contains only one page. It won't create new pages for each of your PDF pages. – igorsantos07 Nov 22 '15 at 2:57
Indeed it won't. – jgyou Nov 22 '15 at 20:06

Try this:




Then the pdf will be put in the page without the offsets of the rest of the document.

share|improve this answer

I did it this way with package pdfpages:

share|improve this answer
Downvoters should leave a comment explaining how the post can be improved! – Adam Liter Mar 10 '14 at 19:46

Try this. Compile it with pdflatex.


I tested with TeX Live 2012 (just updated several days ago) and it works fine.

Note: status-lua is one (of limited number of others) accessible PDF file (in the installed TeX distribution) that I can use for a demonstration purpose.

share|improve this answer

protected by Community Jul 2 at 4:31

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

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