Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Mar 2000 15:15:10 +0200
From:      Zagursky <zagursky@edi.lv>
To:        orders@cdrom.com, freebsd-questions@freebsd.org
Subject:   request
Message-ID:  <38CE3B5C.EE25CBE7@edi.lv>

index | next in thread | raw e-mail

[-- Attachment #1 --]


Dear Sirs,
We  bought FreeBSD 3.3 version and unfortunately now we have some
troubles wih printing.
The problem is following:
when we start printing (HP Laser Jet 4L) at graphic mode we can get only
half of page ( the second one don't printing). Additional information:
fail filter -lj4, ghostscript v.5.50.Please also see attached Unix text
file.
Sincerely,
V .Zagursky

----------------------------------------------------------------------
Institute of Electr.&Comp. Science     Fax: +371 7 555 337
14 Dzerbenes str.,    E-mail: zagursky@edi.lv
LV - 1006, Riga      Phone: 371-2-528938
Latvia
----------------------------------------------------------------------


[-- Attachment #2 --]
#!/bin/sh
#
#  ifhp - Print Ghostscript-simulated PostScript on a LaserJet4L
#  Installed in /usr/local/libexec/lj4

#
#  Treat LF as CR+LF:
#
printf "\033&k2G" || exit 2

#
#  Read first two characters of the file
#
read first_line
first_two_chars=`expr "$first_line" : '\(..\)'`

if [ "$first_two_chars" = "%!" ]; then
    #
    #  It is PostScript; use Ghostscript to scan-convert and print it
    #
    /usr/local/bin/gs -dSAFER -dNOPAUSE -q -sPAPERSIZE=a4  -sDEVICE=ljet4 -r300 -sOutputFile=- - \
        && exit 0

else
    #
    #  Plain text or HP/PCL, so just print it directly; print a form
    #  at the end to eject the last page.
    #
    echo "$first_line" && cat && printf "\f" && exit 0
fi

exit 2
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38CE3B5C.EE25CBE7>