home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / os2 / networki / 1042 < prev    next >
Encoding:
Text File  |  1992-08-18  |  2.6 KB  |  54 lines

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