[GRASSLIST:2230] Re: Changing Paper Size in ps.map
Hamish
hamish_nospam at yahoo.com
Wed Jan 14 18:57:20 EST 2004
> > I have been trying to create a large scale map (18" x 24") using
> > ps.map. I set ps.select to the large printer, but when I run ps.map
> >
> > and view the postscript file it only shows a quarter of the image.
> > I convert the file using ps2pdf then view it in Acrobat Reader.
> > Acrobat seems to be stuck on standard US Letter. However, I get the
> > same result if I view the ps file directly in Mac's Preview.
>
> The resulting PostScript file doesn't attempt to configure the
> printer's (or viewer's) page size; it assumes that it will be set
> correctly.
>
> Nor does it write a %%BoundingBox line; it used to, but that code was
> disabled because it tended to get it wrong (the bounding box only
> covered the map, ignoring any title, legend etc).
>
> You have to set the page size manually using whichever mechanism the
> printer/viewer provides (printers normally have buttons for this,
> GhostView/GV have a menu, ghostscript itself has the -sPAPERSIZE=
> option).
Try running the 'ps.add.pagesize' script.
'gv' usually would show the whole page if you told it the correct size
or something bigger.
You can add the %%BoundingBox line manually at the beginning of your ps
file (thus making it Encapsulated PostScript).
%%BoundingBox: llx lly urx ury
where ll is lower-left and ur is upper-right. Units are inches*72.
see:
http://www.cs.indiana.edu/docproject/programming/postscript/eps.html
http://www.ucs.ed.ac.uk/usd/scisup/faq/postscript.html
Hamish
More information about the grass-user
mailing list