Red Hat Linux filePro sends extra Form Feed
Bill Campbell
bill at celestial.com
Wed Sep 3 13:08:19 PDT 2014
First, HP PCL printers use ESCe reset code as a form feed only if there's
anything in the print buffer.
On Wed, Sep 03, 2014, Nancy Palmquist wrote:
> Greg,
>
> Filepro does not send formfeeds unless you actually put them in the file
> yourself. Filepro sends linefeeds to fill a page.
My printer interface scripts keep track of blank lines, stripping them off
the end of jobs to avoid an extra blank where the application sends an
entire page of blanks. When the interface script finds a non-blank line it
sends N Line Feeds where N is the number of blank lines found before the
non-blank.
I started doing this in the mid-80s to deal with Profile 16 and Radio Shack
RealWorld accounting software that weren't too smart about printing.
The RealWorld software would send CRLF at the end of each line causing
double spacing on printers that accepted LF only. My solution is to strip
all trailing whitespace off each line, then appending a printer-specific
line ending where necessary (e.g. the old Radio Shack DMP2100 if I
remember correctly).
Bill
--
INTERNET: bill at celestial.com Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way
Voice: (206) 236-1676 Mercer Island, WA 98040-0820
Fax: (206) 232-9186 Skype: jwccsllc (206) 855-5792
It does not require a majority to prevail, but rather an irate, tireless
minority keen to set brush fires in people's minds. -- Samuel Adams
More information about the Filepro-list
mailing list