Bug 691467 - Serious bug in bbox output duplication
Summary: Serious bug in bbox output duplication
Status: RESOLVED WORKSFORME
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: Other Driver (show other bugs)
Version: 8.64
Hardware: PC Linux
: P4 normal
Assignee: Default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-16 18:02 UTC by Joseph Gonzalez
Modified: 2023-09-10 07:34 UTC (History)
2 users (show)

See Also:
Customer:
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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