I'm working on a document that's essentially a collection of PDFs (about 55).

Here's what I've got so far:

\usepackage{pdfpages, tocloft, fancyhdr, xcolor, helvet, bookmark}

\renewcommand{\cftsecpagefont}{\color{white}} %Hack to hide section page numbers

\renewcommand{\cftsecfont}{\color{tbsteal} \bfseries \Large}% Section colour
\definecolor{myteal}{RGB}{0, 128, 128}



%Tab 1
\includepdf[pages=-, pagecommand={}, addtotoc={1, section, 1, Key Context, Key Context, 1, subsection, 2, My, Labour Relations Primer}]{MyCoolPDFDocument1.pdf}
\includepdf[pages=-, pagecommand={}]{MyAwesomePDFDocument.pdf}

I essentially want to put a custom footer on the bottom right of every included pdf. As far as I'm aware PDFPages utilize the default page style throughout and the page numbers at the bottom left. The only other option I've heard of is to define custom page styles for every document. Which gets a bit unsustainable.

Love some input here.

  • 2
    and what is the content of the footers? – Ulrike Fischer Jun 17 at 15:02
  • I'm looking to put some custom text on the right side, so included PDF would be: page number tab 1.1 – TWDickson Jun 17 at 15:31
  • You could use the pagecommand option for each included pdf : pagecommand={\fancyfoot[R]{custom text}}. – esdd Jun 17 at 15:32
  • Edit that works! So simple...I'm annoyed it took me so long! Thank you! – TWDickson Jun 17 at 16:21
\usepackage{pdfpages, fancyhdr}

\includepdf[pages=-, pagecommand={\markright{my cool document}}]{example-image-a4-numbered}
\includepdf[pages=-, pagecommand={\markright{my second cool document}}]{example-image-a4-numbered}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.