🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #1718

Re: Mac PostScript through a multi-page filter

#1718
From: Johan Vromans
Date: Mon, 26 Mar 1990 20:40
45 lines
2071 bytes
In article <4470@mhres.mh.nl> jv@mh.nl (That's Me) wrote:

> I'm trying to run PostScript output, generated on a Macintosh
> (MS-Word 4) through a multi-page PostScript filter (JGreely's
> "up" package).
> I transferred the PostScript output to my Unix box, added the
> LaserPrep info, but it doesn't work. The first page (with two
> small pages on it) comes out fine, and the remaining pages are
> filled with something mirrored and enlarged.

Finally I've got it working, and I did it as follows:

Each page of postscript output in a Mac generated document is
contained between a 'op' and 'cp' pair of operators. The former starts
the page, the latter closes it, and prints it out.
The multi-page filter gets its job done, if it inserts the remapping
commands immediately after the 'op' operator.
Each non-printing 'cp' (mostly preceded by the parameters F and T)
should be replaced by "pm restore". E.g. to map two pages on one
physical page:

	...
	%%Page: ? 1
	op
	<mapping instructions for left page>
	<code for page 1>
	pm restore	<was: F T cp>
	...
	%%Page: ? 2
	op
	<mapping instructions for right page>
	<code for page 2>
	F T cp		<left intact>
	... 
	etc

Well, maybe it helps someone...

	Johan
--
Johan Vromans				       jv@mh.nl via internet backbones
Multihouse Automatisering bv		       uucp: ..!{uunet,hp4nl}!mh.nl!jv
Doesburgweg 7, 2803 PL Gouda, The Netherlands  phone/fax: +31 1820 62944/62500
------------------------ "Arms are made for hugging" -------------------------
Technical Details
Message-ID: <4490@mhres.mh.nl>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!hp4nl!mhres!jv
References: <4470@mhres.mh.nl>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!hp4nl!mhres!jv
From: jv@mh.nl (Johan Vromans)
Newsgroups: comp.lang.postscript,comp.sys.mac
Subject: Re: Mac PostScript through a multi-page filter
Message-ID: <4490@mhres.mh.nl>
Date: 26 Mar 90 20:40:56 GMT
References: <4470@mhres.mh.nl>
Sender: news@mhres.mh.nl
Reply-To: Johan Vromans <jv@mh.nl>Johan Vromans <jv@mh.nl>
Organization: Multihouse Gouda, the Netherlands
Lines: 45
In-reply-to: jv@mhres.mh.nl's message of 20 Mar 90 18:36:52 GMT