# how to set the margin of the included pdf with pdflatex [closed]

I have a pdf and I use the plugin "Prinect PDF Assistant: Geometry Control" to split that into 3 equal-width pdfs. If I open each of the seprated pdf, the right margin of the first pdf is ZERO, the left and right margins of the middle pdf are ZERO, and the third pdf has zero left margin. Then I use the \includegraphics to include all pdfs with pdflatex, the output pdf will have each image centralized.

I want to control the scale of each page such that each page has the same marginal configuration as the original one.

-
Maybe you should try the \includepdf command from the pdfpages package? – Stephan Lehmke Nov 26 '12 at 12:35
\includegraphics does not center the image so the output you are describing is produced by code that you haven't mentioned. This makes it hard to help. – David Carlisle Nov 26 '12 at 12:39
\includegraphics does not center the image? I don't know why, here is my code, it render the image in the center \begin{figure}[H] \includegraphics[scale=1.]{demoa.pdf} \end{figure} – user1285419 Nov 26 '12 at 13:26
Thanks Stephan. \includepdf helps to zoom the page but it still keeps the side margins. Anyway to remove one side margin? – user1285419 Nov 26 '12 at 13:36
@user1285419 it is always best to put complete documents in the question that shows the problem The code you show does not center the figure any more than \begin{figure}[H] X\end{figure} centers the X. The typesetting code is identical in either case and the image will be set flush left but indented by the paragraph indent. – David Carlisle Nov 26 '12 at 13:53
show 1 more comment

## closed as too localized by Martin Schröder, Qrrbrbirlbel, Kurt, lockstep, percusseFeb 2 at 21:37

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.