> Or couldn't it be possible to define some html+css to model A4 paper
> size, for example:
>
>
https://codepen.io/rafaelcastrocouto/pen/LFAes>
> and use some of live preview options for html (eww or browseurl or
> something else)? Not a wysiwyg directly, but kind-of middle ground?
Maybe chromium-browser --print-to-pdf=doc.pdf --headless --disable-gpu
--run-all-compositor-stages-before-draw --no-margins doc.html
or using its wrapper chromehtml2pdf.