Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

My institution's letterhead is available as a PDF file. The PDF is not just of the logo (to be placed in a corner), but of the entire page. Is it possible to make this PDF the background of the first page of my document?

share|improve this question

3 Answers 3

up vote 34 down vote accepted

You can accomplish this with the wallpaper package. It has many options for creating background images that are tiled, centered, and scaled, on every page or only specific ones. In your case if the letterhead is contained in lh.pdf then you simply need

\documentclass{article}
\usepackage{wallpaper}
\ULCornerWallPaper{1}{lh.pdf}
\begin{document}
  Your text on the letterhead
\end{document}

The key command in this case is of course \ULCornerWallPaper{<scale>}{<file>} that places the image contained in <file> in the upper-left corner, scaled by a factor of <scale>.

share|improve this answer
    
didn't he say he wants the entire page, rather than just the logo on the corner? –  Vivi Aug 2 '10 at 19:34
5  
Yes, but based on his description it sounded to me as if the file I called lh.pdf is the size of the entire page. So when it's placed in the upper-left corner, it covers the whole page... –  Michael Underwood Aug 2 '10 at 19:59
    
Thank you Michael for sharing this. Your tip has been extremely useful for some documents that I had to deal with recently. –  mfriedman Nov 5 '11 at 22:17
    
I have certain PDF's that when used as wallpaper in this way (or eos-pic way) produce final PDF files that can not be opened by Acrobat Reader (but can be opened with Evince). I didn't find the pattern for this problem, any ideas? –  alfC Jan 10 '13 at 0:54

The package eso-pic allows to include a background image at each page but also on a single page.

Another option is to use the textpos package that can put a box at a position on the page behind the text. It can be used together with \includegraphics and a PDF file.

share|improve this answer

Here is a example with eso-pic, that uses frontpage.pdf for the first page and normalBackground.pdf for the rest.

First create 2 macros that can be used later.

\usepackage{graphicx}
\usepackage{eso-pic}

\newcommand\BackgroundPicFront{
    \put(0,0){
        \parbox[b][\paperheight]{\paperwidth}{
            \vfill
            \centering
            \includegraphics[width=\paperwidth,height=\paperheight,keepaspectratio]{frontpage}%
            \vfill
        }
    }
}

\newcommand\BackgroundPic{
    \put(0,0){
        \parbox[b][\paperheight]{\paperwidth}{
            \vfill
            \centering
            \includegraphics[width=\paperwidth,height=\paperheight,keepaspectratio]{normalBackground}%
            \vfill
        }
    }
}

Then use those macros and don't forget to "clear"/"remove" the first background when you add the next background.

\AddToShipoutPicture{\BackgroundPicFront}
\ClearShipoutPicture
\AddToShipoutPicture{\BackgroundPic}

Have fun

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.