Insert PDF file in LaTeX document

I did it this way with package pdfpages:

\includepdf[pages=-,pagecommand={},width=\textwidth]{file.pdf}

I found the solution :

\setboolean{@twoside}{false}

And

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

And it works !


Try this:

\setlength{\voffset}{0cm}
\setlength{\hoffset}{0cm}

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

\setlength{\voffset}{-2.54cm}
\setlength{\hoffset}{-2.54cm}

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

In case you are with a similar problem but do not know which are he actual offsets, you can create two new lengths, store the original values, and restore them again:

 \newlength{\originalVOffset}
 \newlength{\originalHOffset}
 \setlength{\originalVOffset}{\voffset}   
 \setlength{\originalHOffset}{\hoffset}

 \setlength{\voffset}{0cm}
 \setlength{\hoffset}{0cm}
 \includepdf[pages=-]{file}
 \setlength{\voffset}{\originalVOffset}
 \setlength{\hoffset}{\originalHOffset}

Tags:

Pdf

Pdfpages