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.

I want to put a background image on a file which uses the scrartcl class. The target pdf output size is A4 which is exactly the size of the background image (210mm x 297mm). The image should therefore cover the whole page.

This is what I've tried so far:

\documentclass[11pt,ngerman,a4paper]{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage[printwatermark]{xwatermark}
\newwatermark[allpages,picscale=1,picfile=./bg1,picfileext=png,picwidth=210mm,picheight=297mm,xpos=0,ypos=0]{}   
\begin{document}
    Hello World!
\end{document}

Unfortunately I get an error message

Package atveryend Info: Empty hook `BeforeClearDocument' on input line 11. <./bg1.png, id=4, 597.432pt x 845.0772pt> File: ./bg1.png Graphic file (type png)

Package pdftex.def Info: ./bg1.png used on input line 11. (pdftex.def) Requested size: 597.50662pt x 845.0455pt.

! Undefined control sequence. \xwm@makedraftbox ...@begingroup \ttfamily \color {red}\Large (draft mode)\c... l.11 \end{document}

and the result does not look very promising

screenshot

Do you have any idea what the problem might be?

This is the test-background I've used:

background

share|improve this question
    
Related tex.stackexchange.com/a/115311/14757 –  Sigur Oct 22 '13 at 22:29
    
Or better related: Insert a full page image –  Harish Kumar Oct 22 '13 at 23:22
add comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.