home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.os2.networking
- Path: sparky!uunet!cs.utexas.edu!usc!wupost!uwm.edu!daffy!uwvax!uchinews!ellis!jhrv
- From: jhrv@ellis.uchicago.edu (John M. Kim)
- Subject: Re: remote postscript printing problem
- Message-ID: <1992Aug19.040447.5801@midway.uchicago.edu>
- Keywords: postscript OS/2 TCP/IP
- Sender: news@uchinews.uchicago.edu (News System)
- Reply-To: jhrv@midway.uchicago.edu
- Organization: Center for Population Economics
- References: <2039@deadmin.ucsd.edu> <1992Aug18.235447.28054@midway.uchicago.edu>
- Date: Wed, 19 Aug 1992 04:04:47 GMT
- Lines: 40
-
- In article <1992Aug18.235447.28054@midway.uchicago.edu> sip1@midway.uchicago.edu writes:
- >In article <2039@deadmin.ucsd.edu> lu@topcad.ucsd.edu (George Lu) writes:
- >>I installed TCP/IP 1.2.1 on our 386 running OS/2. I setup lprmon to
- >>monitor lpt1 and send the print job to a postscript printer on an
- >>Appletalk (or is tat LocalTalk ?) network via aonther Sun workstation.
- >>I printed a MS Word document, only to get a few pages of postcript
- >>code from that printer. The source of the problem are the control-D
- >>at the beginning of the postcript file.
- >>One workaround is to print to a file, edit out the control-D, then lpr
- >>from an OS/2 command window, but that does not seem like an elegant
- >>solution. Is there a way to strip those control-D's?
- >
- >We had a similar problem. The solution we chose was to modify things
- >on the Sun so that it would interpret such files as Postscript and
- >print them appropriately.
-
- Not exactly. The MS-Word PS output already started with %!, so it was
- being accepted as PostScript files already. The problem was entirely
- with the braindead MS-Word PostScript driver putting a control-D at
- the top of the output.
-
- >There are several ways to do that, the easiest being to write some
- ^^^^^^^^^^^
- >sort of filter to remove a leading CTRL-D, then pipe that output to
- >the print queue. (The filter would run on the Sun and accept printer
- >output from the OS/2 station.)
-
- Writing a filter and getting it to work with lpd without mangling the
- existing filters seems to be too much trouble (I'd consider that the
- *hardest* way :-). Most PostScript lpd filters prepend some sort of
- PostScript code to the file (e.g., for banners, etc.) before sending
- it to the printer. So the easiest solution would be to find the file
- that contains the prepended code and insert some PostScript code that
- defines control-D in userdict to be the null string.
-
- If this still doesn't work for you, ask for help in
- comp.lang.postscript. This question has already surfaced several
- times in that newsgroup.
-
- John
-