[Tex/LaTex] stack multiple PDF pages

overlaysstack

I have two PDF files, a form page with header and footer and a content page, and like to merge (overlay) them into a single page. Both PDFs are full size A4 portrait pages. I've tried this:

\documentclass[a4paper]{article}
\usepackage{pdfpages}
\begin{document}
\includepdf[]{form.pdf}
\includepdf[]{content.pdf}
\end{document}

but this of course results in PDF file with two pages. Can someone give me a hint?

Best Answer

I don't know if this is good style but it seems to work:

\documentclass[a4paper]{article}
\usepackage{graphicx}
\usepackage{pdfpages,picture}
\usepackage{textpos}

\begin{document}
\includepdf[picturecommand={
  \includegraphics[]{content.pdf}
}]{form.pdf}
\end{document}

'form.pdf' is the backround and 'content.pdf' the overlaying content which has to have a transparent background.

Related Question