[plug] Cannon Postscript Printer

Jason Nicholls jason at mindsocket.com.au
Wed May 3 15:24:40 WST 2000


G'day,

> What I'm after is some way of filtering the document to be
> able to break it up into smaller parts.
> I have had a play with Ghostscript, but I'm turning up
> blanks.

Have you looked at mpage yet? You can print whatever page you want (or 
ranges). Off the top of my head, something along these lines (in pseudocode)

get postscript document (however long)
check length
for i = 1; i < length; i+10	(or whatever num pages you want per iteration)
	mpage document pages i to i+9 -> send to printer
done for

> Has anyone come up against such a braindead postscript
> interpreter previously? or does anyone have any idea
> as to how I can solve my problem, using freely available
> linux/UNIX programs ?

mpage is free, "man mpage" ;) You'd probably want to make sure you use the
swtiches to turn off borders, print one page per page of output, set paper
size (in case default mpage size is wrong).


Regards,

Jason Nicholls
--------------------------------------------------------------------
Jason Nicholls    icq: 11745841	   email: <jason at mindsocket.com.au>
Proprietor			  mobile: 0417 410 811
Mind Socket [web services]          http://www.mindsocket.com.au/
--------------------------------------------------------------------




More information about the plug mailing list