This is a follow up to the question Is there a package that draws a diagonal line over the page - not using TikZ, in trying to implement the following answer. However, the problem is in my view too extensive to be dealt with in the comments there.
I have following MWE, which works fine for drawing the main diagonals and the lower two half-diagonals on the page.
\documentclass[a4paper]{article}
\usepackage{pgf}
\usepackage{eso-pic}
\begin{document}
\AddToShipoutPictureFG{%
\AtPageLowerLeft{% diagonal left bottom to right top
\begin{pgfpicture}
\pgfpathmoveto{\pgfpoint{0mm}{0mm}}
\pgfpathlineto{\pgfpoint{\paperwidth}{\paperheight}}
\pgfusepath{stroke}
\end{pgfpicture}}%
\AtPageLowerLeft{% semi-diagonal left bottom to right middle
\begin{pgfpicture}
\pgfpathmoveto{\pgfpoint{0mm}{0mm}}
\pgfpathlineto{\pgfpoint{\paperwidth}{.5\paperheight}}
\pgfusepath{stroke}
\end{pgfpicture}}%
\AtPageLowerLeft{% diagonal right bottom to left top
\begin{pgfpicture}
\pgfpathmoveto{\pgfpoint{\paperwidth}{0mm}}
\pgfpathlineto{\pgfpoint{0mm}{\paperheight}}
\pgfusepath{stroke}
\end{pgfpicture}}%
\AtPageLowerLeft{% diagonal right bottom to left middle
\begin{pgfpicture}
\pgfpathmoveto{\pgfpoint{\paperwidth}{0mm}}
\pgfpathlineto{\pgfpoint{0mm}{.5\paperheight}}
\pgfusepath{stroke}
\end{pgfpicture}}%
%%%% From here, it turns bad
\AtPageLowerLeft{% diagonal right middle to left top
\begin{pgfpicture}
\pgfpathmoveto{\pgfpoint{\paperwidth}{.5\paperheight}}
\pgfpathlineto{\pgfpoint{-.5\paperwidth}{.5\paperheight}}
\pgfusepath{stroke}
\end{pgfpicture}}%
}
blub\newpage blub
\end{document}
However, I am not able to draw the two upper half-diagonals. I tried by guessing all possibilities yet arrive just at horizontal lines or a line over the already drawn ones.
According to the pgf-manual, the path operation should be relative. So what goes wrong here? I've tried to indicate what I'm trying to do in the comments in the code, so maybe I'm already doing stuff wrong there, but accidentally arrive at the right result.


