Package: psutils
Version: 1.17.dfsg-4
Severity: important

Dear Maintainer,

I have some scripts to manipulate heterogeneous PDF files, rotating
and fitting them to a fixed size. The scripts are something like this:

pdftops -f 1 -l 1 -eps document.pdf document.eps
epsffit -m -c 7 4 575 825 document.eps document-fit.eps

The commands work fine in Debian 6, but they fail in Debian 12 with the
following error:

epsffit: no %%BoundingBox:

The problem turned out to be into the header created by the pdftops
command:

%!PS-Adobe-3.0 EPSF-3.0
%Produced by poppler pdftops version: 22.12.0 (http://poppler.freedesktop.org)
%%LanguageLevel: 2
%%DocumentSuppliedResources: (atend)
%%BoundingBox: 0 0 2384 1684
...

The second line "%Produced by poppler..." confuses the epsffit command,
which is unable to find the %%BoundingBox line.

If I manually edit the document.eps removing the "%Produced by" line,
then epsffit works as expected. Another workaround is to add another
percent sign to the line (like "%%Produced by...").

I'm not sure if the comment "%Produced by" is compliant to the EPS
format. If it is not, we shuld blame the pdftops(1) command, provided
by the poppler-utils package.


-- System Information:
Debian Release: 12.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.1.0-13-amd64 (SMP w/2 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages psutils depends on:
ii  libc6      2.36-9+deb12u3
ii  libpaper1  1.1.29

Versions of packages psutils recommends:
ii  ghostscript  10.0.0~dfsg-11+deb12u2

psutils suggests no packages.

-- no debconf information

Reply via email to