I have printed a few lists to pdf (on a4 pages) which I need to add as appendix to my project. It seems I can do this with \includegraphics
or with \includepdf
(from \usepackage{pdfpages}
).
Includegraphics: Prints the first page , but keeps the top and left margins intact. Doesn't scale the image however, so the right and bottom margins are simply cut off. (The way Trello prints lists, it simply puts them all below eachother, one card-width wide, so the right-side being cut off is not so much a problem. The bottom part is, however.) Also, it doesn't print any other pages than the first.
IncludePDF: Prints all pages on top of each other, basically resulting in only printing the last page. It does print the page on the same page as the header, which is nice. However, the chapter caption and number are printed over the pdf itself. Also it sets the margins to zero so the page is inserted as-is. Besides that the page numbers are now gone.
I think the way to go is \includepdf
, seeing the results I already "achieved". However, I'd rather not include every page manually, because even though this is only 3 pages I might go crazy and write documentation of say, 15 pages.
MWE incoming
\documentclass[11pt]{report}
\usepackage{float}
\usepackage{pdfpages}
\begin{document}
empty page
\newpage
\appendix
\chapter{Trello Board}
%https://trello.com/b/MN172Syh/back-to-school -> print this page.
\begin{figure}[H]
\includepdf[pages=-]{trelloExample.pdf}
\caption{Epics \& User stories}
\label{apx:scrumboard}
\end{figure}
\end{document}
So it seems that, up to the point where I simply added \includepdf
, everything worked. And then I added the figure.
pdf
into your document,pdfpages
is the package you need. Have you tried\includepdf[pages=-, pagecommand={\thispagestyle{headings}},scale=0.8]{<path-to-file>}
?\includepdf
should not be embedded in afigure
environment!