🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #5728

EPS files inside procedures or loops

#5728
From: Ciaran McHale
Date: Wed, 18 Nov 1992 21:08
33 lines
1662 bytes
If I want something (e.g., a logo) to appear on each page of a document
then I could either write the code once for each page, or write a
procedure (which goes into the document's prolog) which does the
necessary and then invoke this procedure for every page. One benefit of
this latter solution is a reduction in the size of the PS file.

But what if the thing I want to appear on each page is an EPS file? Is
it legal to have code like the following:

	/foo
	{
		"some housekeeping before including EPS file"
		... included EPS file here
		"some housekeeping after including EPS file"
	} def

and then invoke foo multiple times in the document? I looked in the Red
Book (the new one for PS Level 2) at the sections which deal with EPS
files and couldn't find any discussion of this.

What I think would prevent the above from working is if the EPS file
contained an image whose data was read directly from "currentfile" (as
is often the case with images).

Comments, anyone?


Ciaran.
-- 
---- Ciaran McHale (cjmchale@dsg.cs.tcd.ie)
\bi/ Department of Computer Science, Trinity College, Dublin 2, Ireland.
 \/  Telephone: +353-1-7021539 FAX: +353-1-6772204
Technical Details
Message-ID: <1992Nov18.210823.8944@dsg.cs.tcd.ie>
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!darwin.sura.net!paladin.american.edu!news.univie.ac.at!hp4at!mcsun!ieunet!tcdcs!maths.tcd.ie!longvalley!cjmchale

Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.postscript
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!darwin.sura.net!paladin.american.edu!news.univie.ac.at!hp4at!mcsun!ieunet!tcdcs!maths.tcd.ie!longvalley!cjmchale
From: cjmchale@dsg.cs.tcd.ie (Ciaran McHale)
Subject: EPS files inside procedures or loops
Message-ID: <1992Nov18.210823.8944@dsg.cs.tcd.ie>
Organization: DSG, Dept. of Computer Science, Trinity College Dublin
Date: Wed, 18 Nov 1992 21:08:23 GMT
Lines: 33