Package: texlive-extra-utils
Version: 2024.20240401-2
Severity: normal
File: /usr/bin/pdfxup

The man entry for pdfxup says that --pages can handle an omitted start
or end of range, e.g. "--pages 2-" or "--pages -5".  However, using the
following pdf file as a test (it's one page long) gives an error
if either the start or end of the range is omitted.

Omitting the end of the range:

$ pdfxup --pages 1- /usr/share/cups/data/default-testpage.pdf
-> processing options 
/usr/bin/pdfxup: line 405: [[: 1-: syntax error: operand expected (error token 
is "-")
   /usr/share/cups/data/default-testpage.pdf has 1 page(s); pages 1- do not 
exist.
/usr/bin/pdfxup: line 405: [[: 1-: syntax error: operand expected (error token 
is "-")
   /usr/share/cups/data/default-testpage.pdf has 1 page(s); pages 1- do not 
exist.
   No pages to include. Aborting.

Omitting the start of the range also fails:

$ pdfxup --pages -1 /usr/share/cups/data/default-testpage.pdf
Error: option '--pages' expects a range, not '-1'.
Aborting.

But omitting both start and end works as described in the man page:

$ pdfxup --pages - /usr/share/cups/data/default-testpage.pdf
-> processing options 
-> computing bounding box.
-> producing final file 
   final scale: 95.35675%
-> cleaning 



-- System Information:
Debian Release: sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'unstable-debug'), (500, 
'testing-debug'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.7.9-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_FIRMWARE_WORKAROUND
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (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 texlive-extra-utils depends on:
ii  libfile-homedir-perl       1.006-2
ii  libunicode-linebreak-perl  0.0.20190101-1+b7
ii  libyaml-tiny-perl          1.74-1
ii  python3                    3.11.8-1
ii  tex-common                 6.18
ii  texlive-base               2024.20240401-2
ii  texlive-binaries           2024.20240313.70630+ds-2
ii  texlive-latex-base         2024.20240401-2
ii  texlive-luatex             2024.20240401-2
ii  texlive-plain-generic      2024.20240401-2

Versions of packages texlive-extra-utils recommends:
ii  ghostscript                10.03.1~dfsg-1
ii  liblog-log4perl-perl       1.57-1
ii  ruby                       1:3.1+nmu1
ii  texlive-latex-recommended  2024.20240401-2

Versions of packages texlive-extra-utils suggests:
ii  chktex                1.7.9-1
ii  default-jre-headless  2:1.17-75
ii  dvidvi                1.0-10.2
ii  dvipng                1.15-1.1+b2
ii  fragmaster            1.7-11
ii  lacheck               1.26-17
ii  latexdiff             1.3.2-1
ii  latexmk               1:4.85-1
ii  purifyeps             1.1-3
pn  xindy                 <none>

Versions of packages tex-common depends on:
ii  ucf  3.0043+nmu1

Versions of packages tex-common suggests:
ii  debhelper  13.15.3

Versions of packages texlive-extra-utils is related to:
ii  tex-common        6.18
ii  texlive-binaries  2024.20240313.70630+ds-2

-- no debconf information

Reply via email to