After reading the question "Tight bounding box for EPS" and applying the @Herbert answer, when I run:
epstool.exe --bbox --copy infile.eps outfile.eps
I get this error:
"gswin32c.exe" -dNOPAUSE -dBATCH -sDEVICE=bbox -c "<> setpagedevice" -f "c:\users\bguerr~1.3\appdata\local\temp\gsviewa14320"
Ghostscript failed to obtain bounding box
Failed
However, I checked the eps file with a text editor and apparently the bounding box information is properly defined
%%BoundingBox: 114 407 585 680.
So, anyone knows what is wrong with my epstool command?
Update
@IanThompson here is the used file infile.eps
infile.eps
usingeps2eps infile.eps infile2.eps
and then try withepstool infile2.eps ...
. Perhaps there is some corruption ofinfile.eps
. – Werner Jul 21 '17 at 16:32epstool
command works with the provided file, and indeed the bounding box is cropped - however for some reason a page number is added. – Marijn Jul 21 '17 at 20:22