bbox
convert PostScript to EPS (Encapsulated PostScript) files
Install
- All systems
-
curl cmd.cat/bbox.sh
- Debian
-
apt-get install ps2eps
- Ubuntu
-
apt-get install ps2eps
- Arch Linux
-
pacman -S texlive-bin
- Kali Linux
-
apt-get install ps2eps
- Fedora
-
dnf install texlive-pstools-bin-6
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install ps2eps
- OS X
-
brew install ps2eps
- Raspbian
-
apt-get install ps2eps
- Dockerfile
- dockerfile.run/bbox
ps2eps
convert PostScript to EPS (Encapsulated PostScript) files
ps2eps is a tool to produce Encapsulated PostScript Files (EPS/EPSF) from usual one-paged Postscript documents. It calculates correct Bounding Boxes for those EPS files and filters some special postscript command sequences that can produce erroneous results on printers. EPS files are needed for including (scalable) graphics into TeX (or even Word) documents. Other programs like ps2epsi do not calculate the bounding box always correctly (because the values are put on the PostScript stack which may get corrupted by bad PostScript code) or rounded it off so that clipping the EPS cut off some parts of the image. Therefore ps2eps uses a resolution of 144 DPI to get the correct bounding box.