Blank trailing pages when printing
Bill Campbell
bill at celestial.com
Tue Aug 18 04:58:52 GMT 1998
On Tue, Aug 18, 1998 at 03:44:46AM +1000, Jordan Krushen wrote:
>I've just set up samba as a print server, and it works beautifully, with one
>exception: after every job, the printer (an HP LaserJet) prints an extra
>(blank) page. Is this a known problem, and if so, what can I do to fix it?
Typically this is a poorly written printer interface filter. I do two
things with all my text print scripts:
1. I strip all trailing blank lines which eliminates problems with
programs that pad everything out to 66 lines per page (many database
and accounting programs do this as well as nroff). The script does
this by counting blank lines, then sending that many newlines if it
comes to a non-blank.
2. End all HP print jobs with an ``ESC E'' sequence rather than a FF
(form feed). This resets the printer, printing anything that's in
the buffer, but doesn't print anything if the buffer's empty.
Bill
--
INTERNET: bill at Celestial.COM Bill Campbell; Celestial Systems, Inc.
UUCP: camco!bill PO Box 820; 6641 E. Mercer Way
FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676
URL: http://www.celestial.com/
It is practically impossible to teach good programming style to
students that have had prior exposure to BASIC: as potential
programmers they are mentally mutilated beyond hope of
regeneration.
-- Dijkstra
More information about the samba
mailing list