Kirill 'Big K' Katsnelson writes:
The architecture is not MS-Windows specific. Are there any X libraries which
treat paper surface just like window surface, to allow for WYSIWYG printing?
Yes, there is something called the "X Print Extension" which behaves
in this manner. IIRC it was added to X fairly recently and will only
be present in fairly new X installations.