0

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

  • Perhaps process infile.eps using eps2eps infile.eps infile2.eps and then try with epstool infile2.eps .... Perhaps there is some corruption of infile.eps. – Werner Jul 21 '17 at 16:32
  • 1
    Can you make the eps file available for download and add a link here? – Ian Thompson Jul 21 '17 at 16:55
  • Are there by any change binary junk in the file? Sometimes there is binary junk before %! PS a few that can throw of some programs – daleif Jul 21 '17 at 17:24
  • 1
    I update my answer by including the file – Bruce_Warrior Jul 21 '17 at 19:01
  • on Linux the epstool 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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.