Debian Bug report logs - #303107
gs-common: ps2pdf ignores %%BoundingBox in EPS files

version graph

Package: gs-common; Maintainer for gs-common is Debian Printing Team <debian-printing@lists.debian.org>;

Reported by: "Matthew T. Atkinson" <matthew@agrip.org.uk>

Date: Mon, 4 Apr 2005 19:48:06 UTC

Severity: normal

Found in version 0.3.7

Fixed in version gs-common/8.71~dfsg2-9

Done: Bastien ROUCARIES <roucaries.bastien@gmail.com>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Masayuki Hatta (mhatta) <mhatta@debian.org>:
Bug#303107; Package gs-common. Full text and rfc822 format available.

Acknowledgement sent to "Matthew T. Atkinson" <matthew@agrip.org.uk>:
New Bug report received and forwarded. Copy sent to Masayuki Hatta (mhatta) <mhatta@debian.org>. Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: "Matthew T. Atkinson" <matthew@agrip.org.uk>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: gs-common: ps2pdf ignores %%BoundingBox in EPS files
Date: Mon, 04 Apr 2005 20:32:08 +0100
Package: gs-common
Version: 0.3.7
Severity: normal

Hello,

I'm exporting images from Inkscape to EPS format, then using ps2pdf so
that they can be incorporated into a pdflatex document.  The problem
that I am having is this:

ps2pdf ignores the %%BoundingBox property in the header of EPS fiels.
The result of this is that when one views the PDF file, it takes up a
coomplete US Letter page.  This makes it unusable as a figure inside a
document.

The current workaround is to edit the EPS file and copy the details of
the BoudingBox, then open the PDF file in an editor, go to the near the
end and re-insert the correct value for the ``MediaBox'' array.  In all
PDFs converted from EPS, this array is always set to the dimensions of a
US Letter page ([0 0 612 792]).

It would be most helpful to _not_ have to go through this for every
figure I'm creating :-).  Many thanks in advance for your time and help,

best regards,


-- 
Matthew T. Atkinson <matthew@agrip.org.uk>

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: powerpc (ppc)
Kernel: Linux 2.6.9
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1)

Versions of packages gs-common depends on:
ii  debconf               1.4.30.11          Debian configuration management sy
ii  debianutils           2.8.4              Miscellaneous utilities specific t
ii  defoma                0.11.8-0.1         Debian Font Manager -- automatic f
ii  gs-esp [gs]           7.07.1-9           The Ghostscript PostScript interpr
ii  gs-gpl [gs]           8.01-5             The GPL Ghostscript PostScript int
ii  gsfonts               8.14+v8.11+urw-0.1 Fonts for the Ghostscript interpre

-- no debconf information



Information forwarded to debian-bugs-dist@lists.debian.org, Masayuki Hatta (mhatta) <mhatta@debian.org>:
Bug#303107; Package gs-common. Full text and rfc822 format available.

Acknowledgement sent to gsview@ghostgum.com.au:
Extra info received and forwarded to list. Copy sent to Masayuki Hatta (mhatta) <mhatta@debian.org>. Full text and rfc822 format available.

Message #10 received at submit@bugs.debian.org (full text, mbox):

From: "Russell Lang" <gsview@ghostgum.com.au>
To: "Matthew T. Atkinson" <matthew@agrip.org.uk>, Debian Bug Tracking System <submit@bugs.debian.org>
Subject: Re: Bug#303107: gs-common: ps2pdf ignores %%BoundingBox in EPS files
Date: Tue, 05 Apr 2005 07:24:13 +1000
Matthew,

On 4 Apr 2005 at 20:32, Matthew T. Atkinson wrote:

> Package: gs-common
> Version: 0.3.7
> Severity: normal
> 
> Hello,
> 
> I'm exporting images from Inkscape to EPS format, then using ps2pdf so
> that they can be incorporated into a pdflatex document.  The problem
> that I am having is this:
> 
> ps2pdf ignores the %%BoundingBox property in the header of EPS files.
> The result of this is that when one views the PDF file, it takes up a
> coomplete US Letter page.  This makes it unusable as a figure inside a
> document.

In recent versions of Ghostscript, adding -dEPSCrop will crop the 
page to the bounding box, both when converting to bitmap formats
and when converting to PDF.  See doc/Use.htm for details.


Russell Lang                   gsview@ghostgum.com.au
Ghostgum Software Pty Ltd      http://www.ghostgum.com.au/





Information forwarded to debian-bugs-dist@lists.debian.org, Masayuki Hatta (mhatta) <mhatta@debian.org>:
Bug#303107; Package gs-common. Full text and rfc822 format available.

Acknowledgement sent to "Matthew T. Atkinson" <matthew@agrip.org.uk>:
Extra info received and forwarded to list. Copy sent to Masayuki Hatta (mhatta) <mhatta@debian.org>. Full text and rfc822 format available.

Message #15 received at submit@bugs.debian.org (full text, mbox):

From: "Matthew T. Atkinson" <matthew@agrip.org.uk>
To: gsview@ghostgum.com.au
Cc: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: Re: Bug#303107: gs-common: ps2pdf ignores %%BoundingBox in EPS files
Date: Mon, 04 Apr 2005 22:42:00 +0100
Hello,

On Tue, 2005-04-05 at 07:24 +1000, Russell Lang wrote:
> In recent versions of Ghostscript, adding -dEPSCrop will crop the 
> page to the bounding box, both when converting to bitmap formats
> and when converting to PDF.  See doc/Use.htm for details.

Thanks for the tip; I had read the man page but not HTML docs :-S.
However, using either EPSCrop and/or EPSFitPage doesn't work for me.  It
produces results that go off the paper in gpdf and don't even show up in
the final document that pdflatex produces.  The ones I modified by hand
still work fine though...

Perhaps there is something else I'm missing, but EPSCrop and EPSFitPage
were the only seemingly relevant options in Use.html.

Would you say this is still a bug, then?

best regards,


-- 
Matthew T. Atkinson <matthew@agrip.org.uk>




Information forwarded to debian-bugs-dist@lists.debian.org, Masayuki Hatta (mhatta) <mhatta@debian.org>:
Bug#303107; Package gs-common. Full text and rfc822 format available.

Acknowledgement sent to "Matthew T. Atkinson" <matthew@agrip.org.uk>:
Extra info received and forwarded to list. Copy sent to Masayuki Hatta (mhatta) <mhatta@debian.org>. Full text and rfc822 format available.

Message #20 received at submit@bugs.debian.org (full text, mbox):

From: "Matthew T. Atkinson" <matthew@agrip.org.uk>
To: gsview@ghostgum.com.au
Cc: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: Re: Bug#303107: gs-common: ps2pdf ignores %%BoundingBox in EPS files
Date: Tue, 05 Apr 2005 00:42:30 +0100
Oops,

It's just been pointed out that the program that exported the file has
done so incorrectly; the headers mark it out as a PostScript document,
not an EPS -- sorry!!

Now to file a bug against Inkscape... :-)

best regards,


-- 
Matthew T. Atkinson <matthew@agrip.org.uk>




Information forwarded to debian-bugs-dist@lists.debian.org, Masayuki Hatta (mhatta) <mhatta@debian.org>:
Bug#303107; Package gs-common. Full text and rfc822 format available.

Acknowledgement sent to gsview@ghostgum.com.au:
Extra info received and forwarded to list. Copy sent to Masayuki Hatta (mhatta) <mhatta@debian.org>. Full text and rfc822 format available.

Message #25 received at submit@bugs.debian.org (full text, mbox):

From: "Russell Lang" <gsview@ghostgum.com.au>
To: "Matthew T. Atkinson" <matthew@agrip.org.uk>
Cc: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: Re: Bug#303107: gs-common: ps2pdf ignores %%BoundingBox in EPS files
Date: Tue, 05 Apr 2005 19:24:18 +1000
Matthew,

> On Tue, 2005-04-05 at 07:24 +1000, Russell Lang wrote:
> > In recent versions of Ghostscript, adding -dEPSCrop will crop the 
> > page to the bounding box, both when converting to bitmap formats
> > and when converting to PDF.  See doc/Use.htm for details.
> 
> Thanks for the tip; I had read the man page but not HTML docs :-S.
> However, using either EPSCrop and/or EPSFitPage doesn't work for me.  It
> produces results that go off the paper in gpdf and don't even show up in
> the final document that pdflatex produces.  The ones I modified by hand
> still work fine though...

Converting with the following gives a PDF file with the media size 
set to the EPS Bounding Box.  d.eps is your diagram.eps with 
the first line changed to mark it as EPS.

gs -dEPSCrop -sDEVICE=pdfwrite -sOutputFile=out.pdf -dNOPAUSE -dBATCH -dAutoRotatePages=/None -c .setpdfwrite -f d.eps


Russell Lang                   gsview@ghostgum.com.au
Ghostgum Software Pty Ltd      http://www.ghostgum.com.au/





Reply sent to Bastien ROUCARIES <roucaries.bastien@gmail.com>:
You have taken responsibility. (Sun, 06 Feb 2011 21:51:07 GMT) Full text and rfc822 format available.

Notification sent to "Matthew T. Atkinson" <matthew@agrip.org.uk>:
Bug acknowledged by developer. (Sun, 06 Feb 2011 21:51:07 GMT) Full text and rfc822 format available.

Message #30 received at 303107-done@bugs.debian.org (full text, mbox):

From: Bastien ROUCARIES <roucaries.bastien@gmail.com>
To: 303107-done@bugs.debian.org
Subject: Done: gs-common: ps2pdf ignores %%BoundingBox in EPS files
Date: Sun, 6 Feb 2011 22:49:26 +0100
Package: gs-common
Version: 8.71~dfsg2-9

Seems corrected according to comments






Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Mon, 07 Mar 2011 07:47:15 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Thu Apr 17 12:39:56 2014; Machine Name: beach.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.