home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / mswindo / programm / win32 / 664 < prev    next >
Encoding:
Text File  |  1992-08-21  |  1.2 KB  |  43 lines

  1. Newsgroups: comp.os.ms-windows.programmer.win32
  2. Path: sparky!uunet!stanford.edu!leland.Stanford.EDU!leland!stergios
  3. From: stergios@leland.Stanford.EDU (Stergios)
  4. Subject: Re: *.pst files
  5. In-Reply-To: woo@ra-next.arc.nasa.gov's message of 20 Aug 92 19:11:44 GMT
  6. Message-ID: <STERGIOS.92Aug21210937@kt22.Stanford.EDU>
  7. Sender: news@leland.Stanford.EDU (Mr News)
  8. Reply-To: stergios@kt22.Stanford.EDU
  9. Organization: DSG, Stanford University
  10. References: <1992Aug20.191144.21419@riacs.edu>
  11. Date: 21 Aug 92 21:09:37
  12. Lines: 29
  13.  
  14.  
  15.  
  16. (Alex Woo x6010 227-6 rm 315) writes:
  17.  
  18.    I recently received the Win32 SDK CD-ROM with the intent of reading
  19.    the documentation.  However, the files that I want to read 
  20.    are in the win32ovr and win32api documentation directories
  21.    and they have the suffix "pst".  I have been unable to 
  22.    preview or print this "postscript" file.  How do you look at it?
  23.    (I called Microsoft but was put on infinite hold.)
  24.  
  25.  
  26. Here's the perl script I use to filter out the ^D & ^M when printing
  27. through a unix host.  Name the file "cdps" and run it as
  28.  
  29.     cat file_name | cdps | lpr -Ppostscript_printer
  30.  
  31.  
  32. #!/usr/local/bin/perl
  33.  
  34. while (<STDIN>) {
  35.     s/\004//g ;
  36.     s/\015//g ;
  37.     print ;
  38. }
  39. --
  40. --------------------------
  41. Stergios Marinopoulos
  42. stergios@kt22.Stanford.EDU
  43.