Package: pdfposter
Version: 0.8.1-4
Severity: grave
Justification: renders package unusable
X-Debbugs-Cc: [email protected]

Dear Maintainer,

the version of pdfposter included in Debian trixie seems to be incompatible
with the default Python 3.13 version

steps to reproduce the issue

- download a sample PDF
  $ curl -O https://www.debian.org/releases/trixie/release-notes.en.pdf

- try to convert the first page to two A4 sheets
  $ pdfposter -f 1 -l 1 -p 2x1a4 release-notes.en.pdf sample_a3.pdf

- it fails with
  ...
  File "/usr/share/pdfposter/pdftools/pdfposter/__init__.py", line 257, in
_scale_pdf_page
    content = ContentStream(page["/Contents"].get_object(), None)
  File "/usr/lib/python3/dist-packages/pypdf/generic/_data_structures.py", line
1198, in __init__
    stream_data = stream.get_data()
  File "/usr/lib/python3/dist-packages/pypdf/generic/_data_structures.py", line
1418, in get_data
    new_data.write(operator)
    ~~~~~~~~~~~~~~^^^^^^^^^^
TypeError: a bytes-like object is required, not 'str'

- the PKG-INFO syas the max supported Python version is 3.10
  $ pkginfo --json /usr/share/pdfposter/pdftools.pdfposter-0.8.1.egg-info/ \
    | jq '.classifiers | map(select(startswith("Programming Language")))'

- following pdfposter changelog support of Python 3.11 was added with version
0.9
  https://pdfposter.readthedocs.io/en/stable/Changes.html
  0.9 (2025-07-22)
  Add support for Python 3.11, 3.12 and 3.13. Drop support for Python 3.6.

Please consider to amend the package to make it usable in Debian trixie.

kind regards
Frank


-- System Information:
Debian Release: 13.6
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 
'proposed-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.100+deb13-amd64 (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages pdfposter depends on:
ii  libjs-jquery      3.6.1+dfsg+~3.5.14-1
ii  libjs-sphinxdoc   8.1.3-5
ii  libjs-underscore  1.13.4~dfsg+~1.11.4-3
ii  python3           3.13.5-1
ii  python3-pypdf     5.4.0-1

pdfposter recommends no packages.

pdfposter suggests no packages.

-- no debconf information

Reply via email to