Re: Text File Prints at Physical Page Boundary
On Wed, Apr 26, 2006 at 04:23:17PM -0400, Gil Citro wrote: [...] My problem is I want to print a plain text file from the command line, but when I give the command lpr file or lp file the output starts at the physical page boundary, and since the printer can't print to the physical page boundary, some of the output is cut off. I've always just used lpr to print text files under Unix, but am new to Debian. Is there another way to print text files with an appropriate margin? Thanks. When it comes to printing plain text files with some basic formatting (like reasonable margins), I tend to rely on enscript. It's even available as a .deb Good luck! --j signature.asc Description: Digital signature
Re: Text File Prints at Physical Page Boundary
Gil Citro wrote: [...] My problem is I want to print a plain text file from the command line, but when I give the command lpr file or lp file the output starts at the physical page boundary, and since the printer can't print to the physical page boundary, some of the output is cut off. [...] Send the text through the pr(1) command: $ pr -o 4 -W 72 filename.txt | lpr In the old days of lpr, I think I remember creating a /etc/printcap that did this semi-automatically, so that I could do this: $ lpr -Ptxt filename.txt You can also use apsfilter which will auto-detect the file type and send it to the right processing program before printing. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]