[Python-modules-team] Bug#592500: python-pisa: xhtml2pdf stdout output unusable

Jan Niehusmann jan at gondor.com
Tue Aug 10 15:07:48 UTC 2010


Package: python-pisa
Version: 3.0.32-1
Severity: normal

According to the manual page, it's possible to send the output of
xhtml2pdf to stdout:

       DEST
           Name of the generated PDF file or - if you like to send the result to stdout. Take care that the destination file is not already opened by an other application like the Adobe Reader. If the
           destination is not writeable a similar name will be calculated automatically.

But when using that feature, the PDF output is mixed with diagnostic
output from xhtml2pdf, making it unusable. Example:

$ echo "test" | xhtml2pdf  - - >/tmp/test.pdf 2>/dev/null ; head -2 /tmp/test.pdf 
Converting - to -...
%PDF-1.3

So the generated pdf is prefixed with a line "Converting - to -...".

This line should probably be sent to stderr instead of stdout.

I didn't check if there is other output sent to stdout during
processing.


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

Kernel: Linux 2.6.35-smapi-x61s-amd64-00006-g96437cc (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-pisa depends on:
ii  python                        2.6.5-11   interactive high-level object-orie
ii  python-html5lib               0.90-1     HTML parser/tokenizer based on the
ii  python-imaging                1.1.7-2    Python Imaging Library
ii  python-pypdf                  1.12-3     PDF toolkit implemented solely in 
ii  python-reportlab              2.4-1      ReportLab library to create PDF do
ii  python-support                1.0.9      automated rebuilding support for P

python-pisa recommends no packages.

python-pisa suggests no packages.

-- no debconf information





More information about the Python-modules-team mailing list