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
\advance\textwidth\pdfpagewidth
\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!