I have a problem when I insert a PDF file in LaTeX:
\usepackage[final]{pdfpages}
\includepdf[pages=-]{file.pdf}
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
\begin{figure}
\centering
\includepdf[pages=-]{file.pdf}
\end{figure}
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 -----
\setlength{\evensidemargin}{2cm}
\setlength{\oddsidemargin}{2cm}
\setlength{\textheight}{\paperheight}
\addtolength{\textheight}{-5.7cm} % 24cm
\setlength{\textwidth}{\paperwidth}
\addtolength{\textwidth}{-4cm} % 17cm
\setlength{\topmargin}{0.5cm}
\setlength{\headheight}{2cm}
\setlength{\headsep}{0.5cm}
\setlength{\voffset}{-2.54cm}
\setlength{\hoffset}{-2.54cm}
\setlength{\footskip}{1.5cm}
\setlength{\parskip}{1ex plus 0.5ex minus 0.2ex}
If I remove this:
\setlength{\voffset}{-2.54cm}
\setlength{\hoffset}{-2.54cm}
the layout of the PDF is OK, but the rest is bad!