🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #2698

Re: BoundingBox, PageBoundingBox and Groff

#2698
From: Ben Cranston
Date: Thu, 02 Aug 1990 19:40
23 lines
1658 bytes
In article <1869@ks.UUCP> ebm@corvair.almaden.ibm.com (Eli Messinger) writes:

> I am trying to include some PostScript figures in a groff document.
> The figures were created using MacDraw, then shipped to a Unix system and
> run through macps (which prepends the appropriate headers).

I've had much better luck using MacDraw to save the drawing as a PICT file,
using a program (I believe called DrawOver that came with Adobe Illustrator)
to convert from PICT format to AI format, then using an awk-based approach
to convert the AI file into vanilla postscript.  My awk does NOT currently
output a BoundingBox comment but it would be trivial to add since it DOES
alter the picture coordinates to center it on an 8.5 x 11 page (also it
automatically goes to landscape if it "makes sense").  Should be three or
four lines of code to output a BoundingBox and a few more lines to make the
rest of the "Encapsulated Postscript" requirements.

Drop me a line if you would like the awk script.

-- 

Ben Cranston <zben@umd2.umd.edu>
Warm and Fuzzy Networking Group, Egregious State University
My cat is named "Perpetually Hungry Autonomous Carbon Unit"; I call him "Sam".
Technical Details
Message-ID: <7027@umd5.umd.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!tut.cis.ohio-state.edu!ucsd!pacbell.com!ames!haven!umd5!zben
References: <1869@ks.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!tut.cis.ohio-state.edu!ucsd!pacbell.com!ames!haven!umd5!zben
From: zben@umd5.umd.edu (Ben Cranston)
Newsgroups: comp.lang.postscript
Subject: Re: BoundingBox, PageBoundingBox and Groff
Summary: MacDraw->PICT->Adobe Illustrator->Vanilla PS
Message-ID: <7027@umd5.umd.edu>
Date: 2 Aug 90 19:40:04 GMT
References: <1869@ks.UUCP>
Reply-To: zben@umd5.umd.edu (Ben Cranston)
Organization: University of Maryland, College Park
Lines: 23