निरंजन
I want to print a book, but the printer friend asks me to provide him a separate pdf of cover pages for printing. I don't want to use any other tool for producing covers than LaTeX. I have seen the [bookcover](https://ctan.org/pkg/bookcover) package, and [this](https://tex.stackexchange.com/a/81630/174620) question, but these solutions are too complicated for a simple cover. What I really need is a simple code which can incorporate the first and the last page of a ready pdf with some additional white space left at the borders.
```
\documentclass{book}
\pagenumbering{gobble}
\begin{document}
\Huge
\hspace{0pt}
\vfill
First page
\vfill
\clearpage\pagebreak
\hspace{0pt}
\vfill
Last page
\vfill
\end{document}
```
Top Answer
samcarter
You could use the
- `geometry` package to adjust the page size to what you need (the exact values will depend on the paper format, e.g. A4 paper, letter etc)
- `pdfpages` package to include the first and last pages from your existing document
```
\documentclass{article}
\usepackage[
paperwidth=30cm, % change these values depending on
paperheight=35cm % what paper format you use
]{geometry}
\usepackage{pdfpages}
\pagestyle{empty}
\begin{document}
\includepdf[pages=1,fitpaper=false,noautoscale=true]{document}
\includepdf[pages=last,fitpaper=false,noautoscale=true]{document}
\end{document}
```
![Screen Shot 2021-02-10 at 12.51.58.png](/image?hash=8ebe2cb07c6488eb7cb117387911bc9b57559dcfd3f3dbf0d7daacc16488630c)
(the page colour is just for visualisation)