[comp.lang.postscript] Boundaries on rasterized files

daveo@soozie.sbi.com (Dave Bloom) (06/27/91)

Hi folks.

I'm using the OpenWindows server as a filter to rasterize postscript
one page at a time. (I do this by redefining showpage, and having it
dump the rasterfile into a file instead of paint it on a mapped can-
vas)  I'm doing this because previewers like pageview depend on Adobe
compliant structuring schemes, which most of our stuff does not com-
ply with.

Without looking at the postscript comments, is there a way for me to
determine the size of the raster (and hence its portrait/landscape
orientation and page size)?  What I envisioned, was creating a
large canvas, rendering the postscript into the canvas, and then
calling some routine that could determine the boundaries of the raster.

Is this possible?  Any ideas on how I can do this or do this better?

Please respond by e-mail... again, I rarely read this group. (Though
I should.)

Thanx.

------------------------------------------------------------------------------ 
Dave Bloom                 "I know that the hypnotized never lie... do ya?" 

Salomon Brothers     | voice: (212) 747-6589 | zip:  daveo 
1 NY Plaza (43rd Fl) | fax:   (212) 742-2247 | inet: daveo@soozie.sbi.com 
New York, NY 10004   |                       |       dave@andromeda.rutgers.edu