# How to prevent pagenumber overlap footer in inserted document while using pdfpages

I am using lyx 2.2.3 win7 64, miktex 2.9 and am trying to include multiple pdfs using \includepdf with pdfpages package. Some of my pdf documents already have page numbers in the footer and the page number inserted by

\includepdfset{frame,pagecommand=\thispagestyle{plain}}


in my preamble, makes the page numbers overlap the text in the footer. Is there some way I could have the pagenumbers in very bottom of left corner of the page. I tried using

\includepdfset{frame,scale=0.8,pagecommand=\thispagestyle{plain}}


and it makes the included pdfs ugly although now the page number do not overlap.

• Use fancyhdr. – JPi Aug 6 '17 at 0:58

\documentclass{article}

\usepackage{fancyhdr}
\usepackage{pdfpages}