0

I would like to inlucde a PDF document and add a caption on the bottom of the page. I tried it with the following statements:

\begin{landscape}
\includepdf[pages=1,scale=0.8,landscape,pagecommand={\thispagestyle{plain}\null\vfill\captionof{table}{Caption Text}}]{Test.pdf}
\end{landscape}

The PDF gets included and the caption is added but it overlaps the included PDF: enter image description here

I have already tried to set \vspace*{12cm} but this causes that the caption is moved to the nex page. Is there any way to move the caption below the PDF?

3

You can use \enlargethispage:

\documentclass{article}
\usepackage{pdfpages,caption}
\begin{document}
\includepdf[pagecommand={\null\vfill\captionof{table}{blub}}]{example-image}

\includepdf[pagecommand={\null\enlargethispage{2\baselineskip}\vfill\captionof{table}{blub}}]{example-image}
\end{document}

enter image description here

  • An alternative to \enlargethispage would be to use the offset parameter of includepdf and scale down the pages slightly. This way you can keep your page layout. – Lupino Jun 4 '18 at 12:37

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.