default False->None in options
[librarian.git] / librarian / pdf / cover_image.sty
1 \newcommand{\makecover}[2]{
2         \pdfpagewidth=#1
3         \pdfpageheight=#2
4
5         \thispagestyle{empty}
6         \newlength{\PictHOffset}
7         \newlength{\PictVOffset}
8         \setlength{\PictHOffset}{1in}
9         \addtolength{\PictHOffset}{\hoffset}
10         \addtolength{\PictHOffset}{\oddsidemargin}
11
12         \setlength{\PictVOffset}{1in}
13         \addtolength{\PictVOffset}{\voffset}
14         \addtolength{\PictVOffset}{\topmargin}
15         \addtolength{\PictVOffset}{\headheight}
16         \addtolength{\PictVOffset}{\headsep}
17         \addtolength{\PictVOffset}{\topskip}
18         \addtolength{\PictVOffset}{-\pdfpageheight}
19
20         \noindent\hspace*{-\PictHOffset}%
21         \raisebox{\PictVOffset}[0pt][0pt]{\makebox[0pt][l]{%
22             \includegraphics[height=\pdfpageheight,width=\pdfpagewidth]{cover.png}}}
23         \clearpage
24
25         \setlength{\pdfpagewidth}{210mm}
26         \setlength{\pdfpageheight}{297mm}
27 }