\newcommand\BackgroundRuler{%
\setlength{\unitlength}{1mm}
\put(25.4, -25.4){
    \put(0,297.0){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,292.5){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,288.0){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,283.5){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,279.0){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,274.5){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,270.0){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,265.5){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,261.0){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,256.5){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,252.0){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,247.5){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,243.0){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,238.5){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,234.0){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,229.5){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,225.0){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,220.5){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,216.0){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,211.5){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,207.0){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,202.5){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,198.0){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,193.5){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,189.0){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,184.5){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,180.0){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,175.5){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,171.0){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,166.5){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,162.0){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,157.5){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,153.0){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,148.5){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,144.0){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,139.5){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,135.0){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,130.5){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,126.0){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,121.5){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,117.0){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,112.5){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,108.0){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,103.5){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,99.0){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,94.5){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,90.0){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,85.5){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,81.0){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,76.5){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,72.0){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,67.5){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,63.0){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,58.5){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,54.0){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,49.5){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,45.0){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,40.5){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,36.0){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,31.5){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,27.0){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,22.5){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,18.0){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,13.5){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,9.0){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,4.5){\textcolor{dgrey1}{\line(1,0){210.0}}}
    \put(0,0.0){\textcolor{dgrey1}{\line(1,0){210.0}}}

    \put(  0.0,0.0){\textcolor{dgrey1}{\line(0,1){297.0}}}
    \put( 14.0,0.0){\textcolor{dblue}{\line(0,1){297.0}}}
    \put( 28.0,0.0){\textcolor{dblue}{\line(0,1){297.0}}}
    \put( 45.0,0.0){\textcolor{dblue}{\line(0,1){297.0}}}
    \put( 47.0,0.0){\textcolor{dblue}{\line(0,1){297.0}}}
    \put(182.0,0.0){\textcolor{dblue}{\line(0,1){297.0}}}
    \put(196.0,0.0){\textcolor{dblue}{\line(0,1){297.0}}}
    \put(210.0,0.0){\textcolor{dgrey1}{\line(0,1){297.0}}}
}
}