Bug#927429: ghostscript: incorrect bbox is produced in pdfcrop
control: forwarded -1 https://bugs.ghostscript.com/show_bug.cgi?id=700988 Quoting Kenshi Muto (2019-04-20 00:32:33) > On Sat, 20 Apr 2019 01:18:50 +0900, > Jonas Smedegaard wrote: > > Can you pass this upstream? Otherwise I will do that. > > Well, it's hard for me to follow upstream discussion... > I'd like to ask you to send, I really appreciate it :) Perfectly fine - I've passed it upstream now. :-) Thanks again for reporting this, - Jonas -- * Jonas Smedegaard - idealist & Internet-arkitekt * Tlf.: +45 40843136 Website: http://dr.jones.dk/ [x] quote me freely [ ] ask before reusing [ ] keep private signature.asc Description: signature
Processed: Re: Bug#927429: ghostscript: incorrect bbox is produced in pdfcrop
Processing control commands: > forwarded -1 https://bugs.ghostscript.com/show_bug.cgi?id=700988 Bug #927429 [ghostscript] ghostscript: incorrect bbox is produced in pdfcrop Set Bug forwarded-to-address to 'https://bugs.ghostscript.com/show_bug.cgi?id=700988'. -- 927429: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=927429 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems
Bug#927429: ghostscript: incorrect bbox is produced in pdfcrop
On Sat, 20 Apr 2019 01:18:50 +0900, Jonas Smedegaard wrote: > > [buster] > > $ gs -sDEVICE=bbox -dBATCH -dNOPAUSE o.pdf > > 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 > > Thanks! > > Indeed this seems broken. > > Can you pass this upstream? Otherwise I will do that. Well, it's hard for me to follow upstream discussion... I'd like to ask you to send, I really appreciate it :) -- Kenshi Muto kmuto at kmuto jp
Bug#927429: ghostscript: incorrect bbox is produced in pdfcrop
Quoting Kenshi Muto (2019-04-19 16:44:24) > On Fri, 19 Apr 2019 23:35:35 +0900, > Jonas Smedegaard wrote: > > > $ pdfcrop -hires -verbose o.pdf > > > > That is the pdfcrop command. Would be quite helpful of you can isolate > > and provide here the embedded gs command. > > Sure, pdfcrop uses bbox device. > Here it is. > > [stretch] > $ gs -sDEVICE=bbox -dBATCH -dNOPAUSE o.pdf > 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 > > [buster] > $ gs -sDEVICE=bbox -dBATCH -dNOPAUSE o.pdf > 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 Thanks! Indeed this seems broken. Can you pass this upstream? Otherwise I will do that. - Jonas -- * Jonas Smedegaard - idealist & Internet-arkitekt * Tlf.: +45 40843136 Website: http://dr.jones.dk/ [x] quote me freely [ ] ask before reusing [ ] keep private signature.asc Description: signature
Bug#927429: ghostscript: incorrect bbox is produced in pdfcrop
On Fri, 19 Apr 2019 23:35:35 +0900, Jonas Smedegaard wrote: > > $ pdfcrop -hires -verbose o.pdf > > That is the pdfcrop command. Would be quite helpful of you can isolate > and provide here the embedded gs command. Sure, pdfcrop uses bbox device. Here it is. [stretch] $ gs -sDEVICE=bbox -dBATCH -dNOPAUSE o.pdf 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 [buster] $ gs -sDEVICE=bbox -dBATCH -dNOPAUSE o.pdf 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 -- Kenshi Muto kmuto at kmuto jp
Bug#927429: ghostscript: incorrect bbox is produced in pdfcrop
Hi Kenshi-san, Quoting Kenshi Muto (2019-04-19 16:15:22) > 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 That is the pdfcrop command. Would be quite helpful of you can isolate and provide here the embedded gs command. Thanks for the bugreport, - Jonas -- * Jonas Smedegaard - idealist & Internet-arkitekt * Tlf.: +45 40843136 Website: http://dr.jones.dk/ [x] quote me freely [ ] ask before reusing [ ] keep private signature.asc Description: signature
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 -- no debconf information o.pdf Description: Adobe PDF document o-crop-stretch.pdf Description: Adobe PDF document o-crop-buster.pdf Description: Adobe PDF document