Re: lpr margin problems printing plaintext through cups
linux4bene@pandora.be said:
>>I had this problem too. Don't know of a true solution to it, but for
>>now I've just started using enscript to print regular text files rather
>>than lpr. It gives a very nice postscript output which is sent by
>>default to the printer.
>
> Anyway, i'll have a look at enscript. Thanks for the info
I had this problem, and I never found a satisfactory solution. Two
workarounds are:
1. don't print plaintext, as has been suggested. Running your text
through enscript (or mpage, or a2ps) means you send postscript to
cups, which doesn't seem to have the margin problems. Unfortunately,
you have to do this for each job on each client. I don't know an easy
way to do it on the server.
2. Use -o to set page margins for each job. See
http://www.cups.org/sum.html#4_4_4 for the only place I've seen this
documented. You can set this option permanently with lpoptions, but
this solution is again client-side only and can't be set on the
server.
I think newer versions of cups at least let you set these things
server-side, but I haven't tried it.
Jason
Reply to: