🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #4999

Re: Simple postscript language question

#4999
From: Marc Bouron
Date: Wed, 13 Mar 1991 14:04
40 lines
2547 bytes
In article <1991Mar13.044414.4630@sactoh0.sac.ca.us>, mahaun@sactoh0.sac.ca.us (Mark A. Haun) writes:
|> I have a question concerning the postscript language, and the
|> feasibility of implementing a simple postscript printer output
|> routine to a program I'm writing.
|> 
|> Some background:  I have recently built a homemade seismograph and
|> am presently coding the associated C software to record, display,
|> analyze, and print the seismograph traces.  I'd like to have an
|> option to print to a postscript printer, which would use only a
|> very limited subset of the postscript language.
|> 
|> The only graphics commands I require (apart from the initialization
|> and formatting commands) are point and line drawing commands, which
|> accept xy coordinates as arguments.  A "lineto" (line from last
|> position) command would be especially nice.  Does postscript have a
|> simple line command which could handle this?  Most importantly,
|> where can I find an accurate syntactic reference for the relevant
|> parts of the postscript language?
|> 
|> Since I know very little about postscript, any enlightenment would
|> be appreciated :-) !

Try reading the "PostScript Language Reference Manual", by Adobe, and
published by Addison-Wesley (ISBN 0-201-10174-2).  It's quite an easy
book to read, and should tell you all you need to know.  You'll be
pleased to learn that there *is* a `lineto' command.  It's called
`lineto' :-)  (Though it's not necessarily quite as simple as that...)


[M][a][r][c]


################################################################################
#                           #  marc@sequoia.cray.com           #     .   .     #
#  Marc CR Bouron           #  M.Bouron@cray.co.uk     (ARPA)  #    _|\ /|_    #
#  Cray Research (UK) Ltd.  #  M.Bouron@crayuk.uucp  (DOMAIN)  #   (_|_V_|_)   #
#  +44 344 485971 x2208     #  M.Bouron@uk.co.cray    (JANET)  #     |   |     #
#                           #  ...!ukc!crayuk!M.Bouron (UUCP)  #               #
################################################################################
Technical Details
Message-ID: <041335.7809@timbuk.cray.com>
Path: arc1-ca.pugleaf.net!utzoo!news-server.csri.toronto.edu!cs.utexas.edu!uunet!timbuk!marc
References: <1991Mar13.044414.4630@sactoh0.sac.ca.us>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!news-server.csri.toronto.edu!cs.utexas.edu!uunet!timbuk!marc
From: marc@sequoia.cray.com (Marc Bouron)
Newsgroups: comp.lang.postscript
Subject: Re: Simple postscript language question
Message-ID: <041335.7809@timbuk.cray.com>
Date: 13 Mar 91 14:04:09 GMT
References: <1991Mar13.044414.4630@sactoh0.sac.ca.us>
Reply-To: marc@sequoia.cray.com (Marc Bouron)
Organization: Cray Research, Inc.
Lines: 40