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...
ocgxsupports XeLaTeX as well. – AlexG Nov 26 '15 at 16:00ocgxneedsshowinguireplaced bylistintoolbarthough (untested), at least that's what ocgx2's README suggests at a quick glance. That also suggests using\usepackage[tikz]{ocgx2}(instead of the additional\usepackage{tikz}) – Tobias Kienzler Nov 27 '15 at 09:55[tikz]option is not necessary here. Actually, it replaces the\usetikzlibrary{ocgx}line, which, according to theocgxmanual, enables some additional TikZ styles that can be used to associate TikZscopeswith OCGs, and to turn TikZ nodes into clickable buttons for changing OCG visibility. Read theocgxmanual for further details. In general, I recommend usingocgx2since it extends theocgxfunctionality and fixes some bugs inherited from theocg-ppackage whichocgxloads under the hood. – AlexG Nov 27 '15 at 10:30ocgx2indeed... Why did you chooseopacity=0.3by the way? – Tobias Kienzler Nov 27 '15 at 10:50\usepackage[showframe]{geometry}– Tobias Kienzler Nov 27 '15 at 10:59showframe, I would experiment with the loading order of the packages. Asgeometryalso modifies the shipout routine viaatbegshi, I would try loadinggeometryjust before the document begins. – AlexG Nov 27 '15 at 11:11scrbook... – Tobias Kienzler Nov 27 '15 at 11:16