[cups.general] changing the margins?

Helge Blischke h.blischke at acm.org
Sat Nov 19 04:20:04 PST 2011


Jeff Sadowski wrote:

> I read on some forums about
> 
> wget http://www.openprinting.org/download/printing/align.ps
> wget http://www.openprinting.org/download/printing/alignmargins
> 
> I tried it out but no matter what I set the margins to it seems to
> ignore them. Is there updates on how to set the margins?
> 
> I see that it adds lines to the ppd file in /etc/cups/ppd/<printer
> name>.ppd
> 
> *OpenUI *Margins/Page Margins/Offsets: PickOne
> *DefaultMargins: Custom
> *Margins Default/Driver Default: ""
> *Margins Custom/Custom (set with 'alignmargins'): "<</.HWMargins[10 10
> 10 10] /Margins[-20 -20]>>setpagedevice"
> *CloseUI: *Margins
> 
> but no matter what it sets it to there is no difference in my output.

This only works for printer configurations that use Ghostscript to render 
PostScript to some other data format.

For native PostScript printers, you need to specify parameters like
/ImagingBBox, /Margins, /ImageShift, and /PageOffset in the pagedevice 
dictionary. For details see the PLRM.

Helge





More information about the cups mailing list