🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #138

Re: How do I recognize postscript from a file

#138
From: Vidiot
Date: Wed, 04 Nov 1992 04:01
17 lines
1188 bytes
In article <1992Nov3.083527.20756@ugle.unit.no> helgeaa@colargol (Helge O. Aarstein) writes:
<We are trying to make a filter for the lp-command to reject 
<non-postscript files. But, there is a problem: 
<	How can I be sure that the file contains postscript-
<	code?

The best is to look for these two characters at the beginning of the file:

	%!

While that doesn't mean that what follows is PostScript, that is the standard
that all printer filters are looking for.
-- 
      harvard\                          spool.cs.wisc.edu!astroatc!vidiot!brown
Vidiot  ucbvax!uwvax..........!astroatc!vidiot!brown
      rutgers/            INTERNET:vidiot!brown%astroatc.UUCP@spool.cs.wisc.edu
                                   brown@wi.extrel.com
Technical Details
Message-ID: <4383@vidiot.UUCP>
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!spool.mu.edu!uwm.edu!daffy!uwvax!astroatc!vidiot!brown
References: <1992Nov3.083527.20756@ugle.unit.no>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!spool.mu.edu!uwm.edu!daffy!uwvax!astroatc!vidiot!brown
From: brown@vidiot.UUCP (Vidiot)
Newsgroups: comp.lang.postscript
Subject: Re: How do I recognize postscript from a file
Message-ID: <4383@vidiot.UUCP>
Date: 4 Nov 92 04:01:50 GMT
References: <1992Nov3.083527.20756@ugle.unit.no>
Reply-To: brown@vidiot.UUCP (Vidiot)
Organization: Vidiot's Hangout
Lines: 17