[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#927429: ghostscript: incorrect bbox is produced in pdfcrop



Package: ghostscript
Version: 9.27~dfsg-1
Severity: normal

Dear Maintainer,

I noticed pdfcrop (texlive-extra-utils) produced misadjusted PDF since Buster.
pdfcrop calls gs internally to get bbox, but gs seems return incorrect
information.

Attached file:
  - o.pdf : original PDF (compiled from upLaTeX on Buster)
  - o-crop-stretch.pdf : cropped PDF from Stretch (correct)
  - o-crop-buster.pdf : cropped PDF from Buster (incorrect)

[on Stretch, ghostscript 9.26a~dfsg-0+deb9u1]
-----------------------------------------------
$ pdfcrop -hires -verbose o.pdf
PDFCROP 1.38, 2012/11/02 - Copyright (c) 2002-2012 by Heiko Oberdiek.
* PDF header: %PDF-1.5
* Running ghostscript for BoundingBox calculation ...
GPL Ghostscript 9.26 (2018-11-20)
Copyright (C) 2018 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: 153 716 159 722
%%HiResBoundingBox: 153.323995 716.777978 158.759995 721.277978
* Page 1: 153.323995 716.777978 158.759995 721.277978
* Running pdfTeX ...
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016/Debian) (preloaded format=pdftex)
entering extended mode
(./tmp-pdfcrop-30001.tex [1 <./o.pdf>] )
Output written on tmp-pdfcrop-30001.pdf (1 page, 3632 bytes).
Transcript written on tmp-pdfcrop-30001.log.
==> 1 page written on `o-crop.pdf'.
-----------------------------------------------

[on Buster, ghostscript 9.27~dfsg-1]
-----------------------------------------------
$ pdfcrop -hires -verbose o.pdf
PDFCROP 1.38, 2012/11/02 - Copyright (c) 2002-2012 by Heiko Oberdiek.
* PDF header: %PDF-1.5
* Running ghostscript for BoundingBox calculation ...
GPL Ghostscript 9.27 (2019-04-04)
Copyright (C) 2018 Artifex Software, Inc.  All rights reserved.
This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY:
see the file COPYING for details.
Processing pages 1 through 1.
Page 1
%%BoundingBox: 148 713 153 717
%%HiResBoundingBox: 148.283995 713.195978 152.855995 716.975978
* Page 1: 148.283995 713.195978 152.855995 716.975978
* Running pdfTeX ...
This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2019/dev/Debian) (preloaded format=pdftex)
entering extended mode
(./tmp-pdfcrop-29743.tex [1 <./o.pdf>] )
Output written on tmp-pdfcrop-29743.pdf (1 page, 3654 bytes).
Transcript written on tmp-pdfcrop-29743.log.
==> 1 page written on `o-crop.pdf'.
-----------------------------------------------

Buster version seems have a serious miscalculation.

Stretch:
%%BoundingBox: 153 716 159 722
%%HiResBoundingBox: 153.323995 716.777978 158.759995 721.277978
* Page 1: 153.323995 716.777978 158.759995 721.277978

Buster:
%%BoundingBox: 148 713 153 717
%%HiResBoundingBox: 148.283995 713.195978 152.855995 716.975978
* Page 1: 148.283995 713.195978 152.855995 716.975978

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-4-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8), LANGUAGE=ja_JP.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages ghostscript depends on:
ii  libc6   2.28-8
ii  libgs9  9.27~dfsg-1

Versions of packages ghostscript recommends:
ii  gsfonts  1:8.11+urwcyr1.0.7~pre44-4.4

Versions of packages ghostscript suggests:
pn  ghostscript-x  <none>

-- no debconf information

Attachment: o.pdf
Description: Adobe PDF document

Attachment: o-crop-stretch.pdf
Description: Adobe PDF document

Attachment: o-crop-buster.pdf
Description: Adobe PDF document


Reply to: