I have just notice something strange. If in the test file example2.ps I remove the line that says "%!PS-Adobe-2.0",
the bug appears again: the file (see example3.ps attached) is recognized as PostScript, but the bounding box is wrong:
GPL Ghostscript SVN PRE-RELEASE 8.61 (2007-08-02)
Copyright (C) 2007 Artifex Software, Inc. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
%%BoundingBox: 0 0 0 0
%%HiResBoundingBox: 0.000000 0.000000 0.000000 0.000000
I have just notice something strange. If in the test file example2.ps I remove the line that says "%!PS-Adobe-2.0",
the bug appears again: the file (see example3.ps attached) is recognized as PostScript, but the bounding box is wrong:
> ghostscript -sDEVICE=bbox -dNOPAUSE -dBATCH example3.ps
GPL Ghostscript SVN PRE-RELEASE 8.61 (2007-08-02)
Copyright (C) 2007 Artifex Software, Inc. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
%%BoundingBox: 0 0 0 0
%%HiResBoundingBox: 0.000000 0.000000 0.000000 0.000000