Message : Pdf teXify failed to create a pdf file
Code
\documentclass[12pt]{article}
\usepackage{eso-pic}
\newcommand\BackgroundPic{
\put(0,0){
\parbox[b][\paperheight]{\paperwidth}{%
\vfill
\centering
\includegraphics[width=\paperwidth,height=\paperheight,
keepaspectratio]{background.png}%
\vfill
}}}
\begin{document}
%The * will make sure that the background picture will only be put on
one page.
\AddToShipoutPicture*{\BackgroundPic}
\pagestyle{empty}
%Then use this command to stop using the background picture:
\ClearShipoutPicture
\end{document}
> I receive this message when I try to compile the code to put a
> background picture with Winedt.
> Please help fix that problem.
>
>
> Message : Pdf teXify failed to create a pdf file
Check the documentation of Winedt, how to get the real error message
of the TeX compiler.
The TeX compiler also writes a file with the name of the .tex file but
with extension .log. Also here you can find the error messages.
Probably you have the following error:
| ! Undefined control sequence.
| <argument> \includegraphics
That means, you have forgotten to load the package `graphicx'.
> Code
[...]
\usepackage{graphicx}
[...]
\newcommand\BackgroundPic{%
\put(0,0){%
\makebox(0,0)[bl]{%
\includegraphics[
width=\paperwidth,
height=\paperheight,
keepaspectratio
]{s1.png}%
}%
}%
}
[...]
Yours sincerely
Heiko <ober...@uni-freiburg.de>
eso-pic also provides the \AtPageLowerLeft helper command which
you could use instead of \put(0,0){...}
c
--
\black\trash movie _C O W B O Y_ _C A N O E_ _C O M A_
Ein deutscher Western/A German Western
I still have problem compiling this example. It did not recognize
(rose) color. I add package color, I change color. Nothing is working?
Thanks again for your help.
---------------------------------------
% file `eso-ex2.tex'; an example for background pictures
% Rolf Niepraschk, 2002-07-27, niepr...@ptb.de
\listfiles
\documentclass{article}
%\usepackage{eso-pic}
\usepackage{eso-pic}
\usepackage{graphicx}
\usepackage[dvips]{geometry}
% Tells `dvips' and `pdfTeX' the papersize.
% `rose.eps' from CTAN: macros/generic/boxedeps/
\newcommand\BackgroundPicture{%
\put(0,0){%
\parbox[b][\paperheight]{\paperwidth}{%
\vfill
\centering
\includegraphics[width=\paperwidth,height=\paperheight,%
keepaspectratio]{rose}%
\vfill
}}}
% The picture is centered on the page background
\AddToShipoutPicture{\BackgroundPicture}
\begin{document}
\section{\TeX}
\ClearShipoutPicture
\section{Empty}
\newpage
\AddToShipoutPicture{\BackgroundPicture}
\section{\LaTeX}
\end{document}
In your example rose.eps is an encapsulated postscript (eps) file,
which is a graphics file. Have a look at the xcolor package
http://mirror.ctan.org/macros/latex/contrib/xcolor/xcolor.pdf
if you want to use colors in your document.