Printing API

The X Window System has a printing mechanism which is unfortunately not in very wide use. A reason for this could be the fact that the documentation for this mechanism refers to a widget set which was less available than its documentation.

The LessTif core team has started to implement two modules which, together, offer full printing functionality : XmPrint and DtPrint.

These API's are demonstrated by the new printing functionality in Xinvest. Note several constraints however :

What are XmPrint and DtPrint ?

XmPrint is our abbreviation for a module in Motif that implements support for the X Printing Mechanism. DtPrint is our abbreviation for a similar modules in CDE.

LessTif now contains simple implementations of both, which makes it possible to write applications that use this standardised and (fairly) high level mechanism to print in a device independent manner.

As our experience in getting Xinvest to use this technology showed, all is not always as simple as it seems. In retroscpect, the changes that need to be made to an application to get it to print are relatively minor. Their complexity grows as the application is more graphics intensive, but even for Xinvest (which is graphics intensive) the changes were not hard to implement.

How to Xp, XmPrint, and DtPrint cooperate ?

An overview by the X Consortium on how these cooperate is in their distributions in file

  xc/programs/Xserver/XpConfig/README
We have provided a copy of the X11R6.6 version here.

Which version of Xprt is known to work ?

Under construction

Roland Mainz has gotten Mozilla to work with Xprt. Under his impulse, the Xprt server has also improved. This is now part of the X.org tree and will be in X11r6.7.1 . You can find his work at http://xprint.mozdev.org.

The X.org release X11r6.8 also contains working Xprt.

Xprt configuration

Under construction in file here.