Bug 691467

Summary: Serious bug in bbox output duplication
Product: Ghostscript Reporter: Joseph Gonzalez <jegonzal>
Component: Other DriverAssignee: Default assignee <ghostpdl-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal CC: alex, dhistrajkumar
Priority: P4    
Version: 8.64   
Hardware: PC   
OS: Linux   
Customer: Word Size: ---

Description Joseph Gonzalez 2010-07-16 18:02:28 UTC
Run the following command:
  ghostscript -sDEVICE=bbox -dBATCH -dNOPAUSE anypdf.pdf

will generate:


GPL Ghostscript 8.64 (2009-02-03)
Copyright (C) 2009 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Processing pages 1 through 1.
Page 1
%%BoundingBox: 0 0 650 213
%%BoundingBox: 0 0 650 213
%%HiResBoundingBox: 0.000000 0.000000 649.007980 212.003994
%%HiResBoundingBox: 0.000000 0.000000 649.007980 212.003994

With duplicated %%BoundingBox and %%HiResBoundingBox.  This error breaks the very popular pdfcrop script.  Output should have been:

GPL Ghostscript 8.64 (2009-02-03)
Copyright (C) 2009 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Processing pages 1 through 1.
Page 1
%%BoundingBox: 0 0 650 213
%%HiResBoundingBox: 0.000000 0.000000 649.007980 212.003994
Comment 1 Joseph Gonzalez 2010-07-16 18:03:17 UTC
This bug breaks pdfcrop.
Comment 2 Alex Cherepanov 2010-07-16 19:22:17 UTC
I cannot reproduce this. Please provide more ifo about your system and your Ghostscript.
Comment 3 Ray Johnston 2010-07-16 19:51:41 UTC
Ghostscript 8.64 is obsolete and is no longer supported. Please re-test
with 8.71 or the 9.00 PRE-RELEASE (svn HEAD rev).

If it can be duplicated, please re-open this bug