Thanks to another post I used
\usepackage{wallpaper}
\usepackage{watermark}
\leftwatermark{
Left
\ThisCenterWallPaper{1.0}{Wallpaper-L.pdf}
}
\rightwatermark{
Right
\ThisCenterWallPaper{1.0}{Wallpaper-R.pdf}
}
to have a full-sized pdf wallpaper on every page. I also discovered that ocgx2 supports XeLaTeX to create PDF layers, so now I wanted to put the wallpaper into a non-printing layer by surrounding \ThisCenterWallPaper
with a \begin{ocg}[printocg=necer]{wallpaper}{wallpaper}{1}
(and respective \end
) as described here. Unfortunately, either wallpaper
seems to "escape" the ocg
environment, since the finished pdf has the layer but hiding it doesn't hide the wallpaper, nor does the print preview - the text, however, works.
I tried using other means to include the wallpaper, e.g. background
's backgroundsetup
with includegraphics
, but that always resulted in a non-fullsize wallpaper (possibly due to my using geometry
to modify the margins?).
In summary, I'm looking for means to include two pdf files as full-size, non-printing wallpapers (different ones for even and odd pages) in xetex...