I'm searching and trying to add a image as watermark to rmarkdown pdf, I'm using the render
function to generate the PDFs, and saw the \usepackage{draftwatermark}
and this question:
But they don't help me in adding a image as watermark.
--EDIT--
I achieved what I wanted putting this to the header of .Rmd:
header-includes:
- \usepackage{eso-pic,graphicx,transparent}
And placing this in the start of file (before the rest of .Rmd):
\AddToShipoutPictureFG{
\put(0,0){%
\parbox[b][\paperheight]{\paperwidth}{%
\centering
{\transparent{0.3} \includegraphics[width=\paperwidth,height=\paperheight,%
keepaspectratio]{background.png}}%
}
}
}
But the problem is that I can't choose the image that I want. It keeps getting a sample image from C:\Program Files (x86)\MiKTeX 2.9\tex\plain\present
.
How I choose the folder before starting processing the file?