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? Many thanks, J.
Jan Kratochvil
1998-Aug-17 20:44 UTC
Blank trailing pages when printing [just printcap(5) solve]
> 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?See printcap(5) and options "sf", "sh". And stop using that stupid and security-holed mailer. ;-) Lace
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@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
> 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?Sounds like you are filtering the print job through a filter and whatever filter you're using is tacking on an empty page for some reason. Just delete the if: comment in your printacp entry Alex