# Inserting an A1 image into an A4 document whilst maintaining page numbers?

I'm a bit new to LaTeX so sorry if this is obvious. I'm trying to insert a large image (which I have created a pdf version of) into an A4 document. I have tried using pdfpages and fitpaper=true to insert the image but then the page number is displayed in the middle of the document, as it still treats the page as an A4 size. I have trawled the internet and found a method for changing the size of a single sheet in the document into an A3, which works fine, but I get issues when I try to adapt it for an A1. Below is the code I am currently using:

\newpage
\begingroup
\hsize=\textwidth\linewidth=\hsize\columnwidth=\hsize
\pdfpagewidth=4\pdfpagewidth
\pdfpageheight=2\pdfpageheight

\hfill\includegraphics[scale=0.80]{./Images/image.pdf}\hspace*{\fill}

\newpage
\endgroup


I believe the issue is due to the workable page space that hasn't been taken into account when I changed the physical size of the page.

Alternatively if you use pdfpages:

\includepdf[pages=-,scale=0.8,fitpaper=true,pagecommand=\thispagestyle{plain}]{./Images/image.pdf}


The image appears correctly as an A1 drawing on an A1 sheet in an otherwise A4 document, but the page number does not display correctly on the bottom as a footer.

If anyone can give any guidance that would be great. Thanks!

• I take it you want to fill the entire A1 page (including margins) with the A4 image. If so, see tex.stackexchange.com/questions/136900/insert-a-full-page-image – John Kormylo Feb 6 '14 at 23:04
• No, I think the OP wants to insert an Al image into an A4 document. What I'm not clear about is whether this should ideally be scaled to A4, scaled to A3 or left as A1 with a one-off out-sized page. – cfr Feb 6 '14 at 23:13
• The image I'm inserting is a flow diagram, which I have produced on an A1 sheet. I need to insert the image as an A1 sheet into the A4 document. I can achieve this using pdfpages and fitpaper=true, but page numbering then becomes an issue. Sorry for the confusion! – Will Feb 6 '14 at 23:23
• So you want to clip the image to remove the page number and scale it to use a new page number? \includegraphics* will clip and \resizebox will scale. – John Kormylo Feb 6 '14 at 23:30
• – John Kormylo Feb 8 '14 at 20:04

This works as is. The page number lines up with the page number from my source A1 page.

\documentclass[a4paper]{report}
\usepackage[margin=2cm]{geometry}
\usepackage{pdfpages}

\newcommand{\pcmd}[2]% #1 = width of working space, #2 = distance to page number
{\thispagestyle{empty}%
\noindent%
\raisebox{-#2}[0pt][0pt]{\makebox[#1][c]{\thepage}}%
\hspace{-#1}}

\begin{document}
\includepdf[pages=-,fitpaper=true,pagecommand={\pcmd{55.4cm}{80.8cm}}]%
{yourfile.pdf}

\end{document}


P.S. How the heck do you print something like this?

• Thanks for your help John, but I just tried this code and the page numbers still aren't showing :/ Sorry. P.S. Haha, I'm going to have to outsource the printing to the university's printing company (they can do A0 prints!) – Will Feb 9 '14 at 0:02
• BTW, does the A1 document already have margins? On A1 paper the margins for scale=.8 are going to be huge! – John Kormylo Feb 9 '14 at 16:58
• Haha yeah it's just for an example - I'll change it so that the image fits nicely around the page numbering and/or headers. – Will Feb 9 '14 at 17:20
• With the last set of changes, I cam put the new page number directly on top of the page number in my A1 test file. Interestingly, the font size is slightly different. – John Kormylo Feb 9 '14 at 17:39
• The font sizes were the same after all. It was an optical illusion. BTW, have you tried running the MWE by itself (changing yourfile.pdf, of course)? – John Kormylo Feb 9 '14 at 18:00