*BSD News Article 36419


Return to BSD News archive

Xref: sserve comp.periphs.printers:14539 comp.os.ms-windows.networking.misc:1427 comp.os.ms-windows.misc:33284 comp.unix.bsd:15000 comp.unix.misc:14193 comp.os.os2.misc:106330
Newsgroups: comp.periphs.printers,comp.os.ms-windows.networking.misc,comp.os.ms-windows.misc,comp.unix.bsd,comp.unix.misc,comp.os.os2.misc
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msuinfo!agate!howland.reston.ans.net!math.ohio-state.edu!jussieu.fr!univ-lyon1.fr!swidir.switch.ch!newsfeed.ACO.net!Austria.EU.net!EU.net!uunet!zib-berlin.de!math.fu-berlin.de!Pinen.Chemie.FU-Berlin.DE!ferincz
From: ferincz@chemie.fu-berlin.de (Jozsef Ferincz)
Subject: Re: How to remove Ctrl-D from PostScript output (lpr)?
Message-ID: <VH3SBFJR@math.fu-berlin.de>
Sender: news@math.fu-berlin.de (Math Department)
Nntp-Posting-Host: pinen.chemie.fu-berlin.de
Reply-To: ferincz@chemie.fu-berlin.de
Organization: Free University of Berlin, Dept. of Chemistry
References: <36a251$kkj@csdsun2.arlut.utexas.edu> 	<36ftom$5ng@news.service.uci.edu> <JGREELY.94Sep30114629@kencyr.synopsys.com>
Date: Sat, 1 Oct 1994 17:18:31 GMT
Lines: 42

jgreely@synopsys.com (J Greely) writes:

>In article <36ftom$5ng@news.service.uci.edu> jrefling@rosslare.ece.uci.edu
> (John Refling) writes:
>>I don't believe that the control-d switches the printer out of
>>postscript, but rather just ends the current job.
>
>The most likely culprit is file-type detection, either in the spooler
>or the printer.  Anything that looks for "%!" at the beginning of the
>file to identify PostScript files will fail if it finds a leading
>Control-D, and assume that the file is text.
>
>>I always give all our laser writers (I, I plus, NT, not using II at
>>the moment) a control-d at beginning and end of the job, to clear
>>whatever has happened before or during the current job.
>
>Control-D does in fact do this when speaking to the printer over a
>serial or parallel line.  It is an error to send it over a TCP/IP or
>AppleTalk connection (both of which are capable of detecting EOF
>without the Control-D).  It is an error for Windows to generate a
>Control-D in a PostScript file unless it is sending the file directly
>to a printer connected by a serial or parallel line.
>
>  Microsoft belatedly realized this and added the "ctrld=0" flag to
>the print driver (documented in \windows\printers.wri, with a
>gloriously incorrect explanation of the problem it's solving).  In
>Windows 95, rather than fixing the basic problem and providing a
>functional print spooler, they have added checkboxes to the print
>dialog to optionally fail to generate the offending Control-D
>characters, fore and aft.  It ain't perfect, but it works.

Thomas Heil - the author of wlpspl - made a simple tool, which
sets this switch for the PS printers you have installed in win.
It's in wlprs40a.zip, which is in the winsock directory of cica.

Best regards, Jozsef

--
Jozsef Ferincz                   Internet: ferincz@chemie.fu-berlin.de
Freie Universitaet Berlin
Institut fuer Organische Chemie       Tel:   +49.30.838-2677, 838-5363
Takustr. 3, D-14195 Berlin, Germany   Fax:   +49.30.838-5163, 838-4248