Simple accounting filter/backend (With Perl or another script language)

Helge Blischke H.Blischke at srz-berlin.de
Thu Jun 17 05:01:19 PDT 2004


Anonymous wrote:
> 
> Helge Blischke wrote:
> > What about using Ghostscript's bbox device within such a filter?
> > It would work even for non-DSC-compliant jobs.
> 
> Well, I'm quite new to this stuff, so what is the bbox device ?
> 
> [...]

Instead of a lengthy explanation, here is an example:

% gs -sDEVICE=bbox -dNOPAUSE -c save pop -f sample.ps -c quit
AFPL Ghostscript 7.0 (2001-06-26)
Copyright (C) 2001 artofcode LLC, Benicia, CA.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Loading Courier font from /PostScript/pfa/Courier.ps... 2406292 912504
1662616 364850 2 done.
Loading Arial font from /PostScript/pfa/Arial.ps... 2446484 955677
1682712 384556 2 done.
%%BoundingBox: 10 187 31 774
%%HiResBoundingBox: 10.278000 187.073994 30.077999 773.981976
%%BoundingBox: 10 391 30 738
%%HiResBoundingBox: 10.278000 391.085988 29.339999 737.981977
%

You see, for every page in the job (sample.ps has 2 pages and is _not_
DSC compliant), this
command lists the bounding box in standard and hi res form.

Helge


-- 
H.Blischke at srz-berlin.de
H.Blischke at srz-berlin.com
H.Blischke at acm.org




More information about the cups mailing list