[cups.general] Replacing XPrint interfaces with CUPS

Michael R Sweet msweet at apple.com
Fri Apr 10 15:18:27 PDT 2009


Robert Schweikert wrote:
> In an effort to make some code LSB compliant it is necessary to replace
> XPrint interfaces used by the code with CUPS interfaces, since CUPS is
> part of the LSB. I would appreciate any help anyone can provide for the
> following list of interfaces (replacement API's to use, potential
> approaches if there is no direct replacement, pointers to documentation
> etc.). I have little knowledge about what it takes to print something,
> thus any help is appreciated.
> 
> Here is the list of interfaces:
> 
> XpQueryExtension
> XpGetPageDimensions
> XpGetPdmStartParams
> XpGetOneAttribute
> XpSelectInput
> XpGetDocumentData
> XpGetContext
> XpEndPage
> XpStartPage
> XpEndJob
> XpGetScreenOfContext
> XpSetImageResolution

Most of these relate to printing with X11 calls; while you can get
some of the information (page dimensions come from the PPD file for
a printer), I highly recommend using one of the toolkits (GNOME or
Qt) instead of direct X11 calls for printing.

-- 
______________________________________________________________________
Michael R Sweet                        Senior Printing System Engineer





More information about the cups mailing list