I am including a PDF file as part of my reports appendices.
The PDF file does not have page numbers, these are added using pagecommand=\thispagestyle{plain}
which continues the LaTeX page numbering.
\usepackage{pdfpages}
\includepdf[pages=-, pagecommand=\thispagestyle{plain}]{file.pdf}
How would I make it possible to refer to each PDF page using \pageref{}
in the rest of my report?