Dear list users,

How can one go about implementing a ruler around the page/text area (such as a background) like the one provided by the latex package fgruler? https://www.ctan.org/tex-archive/macros/latex/contrib/fgruler or koma script's \layercontentsmeasure?