Return to BSD News archive
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!constellation!osuunx.ucc.okstate.edu!newsfeed.ksu.ksu.edu!moe.ksu.ksu.edu!vixen.cso.uiuc.edu!howland.reston.ans.net!math.ohio-state.edu!uwm.edu!lll-winken.llnl.gov!enews.sgi.com!decwrl!tribune.usask.ca!quartz.ucs.ualberta.ca!news
From: jmack@skye.phys.ualberta.ca
Newsgroups: comp.unix.bsd
Subject: Re: How to remove Ctrl-D from PostScript output (lpr)?
Date: 27 Oct 1994 04:30:14 GMT
Organization: Computer and Network Services, U of Alberta, Edmonton, Canada
Lines: 49
Distribution: inet
Message-ID: <38nacm$ujc@quartz.ucs.ualberta.ca>
References: <trussell.91.00125C9B@idx.com>
NNTP-Posting-Host: skye.phys.ualberta.ca
In comp.unix.bsd article <trussell.91.00125C9B@idx.com> you wrote:
> In article <trussell.85.000B8A2B@idx.com> trussell@idx.com (Tommy Trussell)
writes:
..
> I have been summarily upbraided for my hasty post (quoted above). I was off
> on the technical explanation of the problem -- the Ctrl-D messes up the lpr
> filter because the filter is looking for the ASCII string at the very
> beginning that signals PostScript, and finds a Ctrl-D tacked on the front.
> Then when it tries to print the file as a text file, the Ctrl-D resets the
> printer. (Did I get it wrong again? Oh well.)
..
> Moral of the story: Microsoft should never have tossed the Ctrl-D in there
^
(Yes Microsloph is pretty stupid, I agree)
> at the beginning of every PostScript print job. At least they put in the
> code to take it out, but they made too hard for novices to do!
Depending on your version of WinDOZE, have you tried editing WIN.INI, or adding
the following to turn this "feature" off?
|[ModelName,Port] CtrlD=0,1 [default 1]
|--------------------------------------
|
|Under normal circumstances, the Windows PostScript driver places a
|CTRL+D character at the start of a print job to put the printer back
|into a clean state, or reset it. Some printers and/or environments do
|not want CTRL+D characters placed in the beginning of the PostScript
|output. If CtrlD is set to 0, no initial CTRL+D character is
|generated. If CtrlD is set to 1, the driver generates CTRL+D
|characters if the printer description states that the printer accepts
|CTRL+D characters.
There is also some shareware piece in the "Windows LPR Spooler Version 4.0a"
(WLPRSnnn.ZIP) distribution by Thomas Heil which is purported to do same:
CTRLD10B.ZIP An archive that contains a small
utility with which one can
enable/disable the generation of a
leading Ctrld-D for any installed
PostScript printer driver.
--
James S. MacKinnon Office: P-139 Avahd-Bhatia Physics Lab
Computing/Networking Phone : (403) 492-8226
Department of Physics email : jmack@phys.ualberta.ca
University of Alberta uucp : uofaphys!jmack iskye!jmack
Edmonton, Canada T6G 2N5 bitnet: jmack@triumfcl jsm1@ualtamts