(Answer) (Category) OSU Physics Faq's : (Category) Computing (general) : (Category) TeX and LaTeX :
Is there a way to automatically figure out and insert the bounding box in a postscript file?
If you have Ghostscript 6.0 (or later), you can use a perl script that will automatically find the bounding box and correct the postscript file (or add the info if there is none). The script is
    </~ntg/scripts/bbox_add.pl>
Be sure to make it executable:
    chmod +x bbox_add.pl
To see the options and the defaults,
    bbox_add.pl --help
Here is what the "help" says at present:
 The script bbox_add.pl adds a tight bounding box to postscript files.
  It uses gs with the bbox option.
  
 The only mandatory command-line arguments are the names of the files
  to be processed.  Wildcards are allowed (e.g. *.tex will process all
  of the TeX files.)
  
 The options are
   --help                print this help
   --version             version number
   --keep                keep original file, with ".orig" appended to name
   --padding=i           add an "i" point border around box (default is 3)

2001-Sep-07 4:59pm furnstahl.1@osu.edu
[Append to This Answer]
2001-Sep-07 4:59pm
Previous: (Answer) Can I include a JPEG (jpg) graphic file directly into TeX or LaTeX?
Next: (Answer) How can I convert a TeX or LaTeX file to a text (ascii) file?
This document is: http://www.physics.ohio-state.edu/cgi-bin/fom?file=114
[Search] [Appearance] [Show Expert Edit Commands]
This is a Faq-O-Matic 2.721.