[Pkg-cups-devel] Bug#462457: cupsys: pdftops not ready for acrobat 8.1.1
Christophe Troestler
Christophe.Troestler at umh.ac.be
Thu Jan 24 23:11:00 UTC 2008
Package: cupsys
Version: 1.3.5-1
Severity: normal
In view of bugs #462433, #457810, #460624 and the shortcomings with
pdftops of xpdf-utils (I tested and it does not convert properly PDF
files with images), I tried to activate the use of acroread.
I modified /usr/lib/cups/filter/pdftops so that lines 94 and 95 read
$acroread_path = "/usr/local/bin/acroread"; # path to Adobe Reader
$default_app = 'use-acroread';
That is not enough however, line 324 must read
$rc = system ("$acroread_path $cmdopt -pairs $pdffile -");
(the "<" should be supported according to the doc but actually
acroread segfaults with it!). However that still does not work
reliably (I guess because acroread tries to write the file "-" in
addition to sending the output to stdout!!). So something following
the lines of
my $tmpfile = tmpnam();
$rc = system ("$acroread_path $cmdopt -pairs $pdffile $tmpfile");
system("cat $tmpfile");
unlink "$tmpfile";
is actually required... (then line 98 must also be changed into “use
File::Temp qw( tempfile tmpnam );”). [The $tmpfile is not safely
created but that sould not matter too much because it is created in
“/var/spool/cups/tmp/” with mode “-rw------- 1 lp lp”.]
Regards,
ChriS
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (900, 'testing'), (400, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.23.14 (SMP w/2 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash
Versions of packages cupsys depends on:
ii adduser 3.105 add and remove users and groups
ii cupsys-common 1.3.5-1 Common UNIX Printing System(tm) -
ii debconf [debconf-2.0] 1.5.18 Debian configuration management sy
ii gs-esp 8.15.3.dfsg.1-1 The Ghostscript PostScript interpr
ii libavahi-compat-libdn 0.6.22-2 Avahi Apple Bonjour compatibility
ii libc6 2.7-6 GNU C Library: Shared libraries
ii libcupsimage2 1.3.5-1 Common UNIX Printing System(tm) -
ii libcupsys2 1.3.5-1 Common UNIX Printing System(tm) -
ii libdbus-1-3 1.1.2-1 simple interprocess messaging syst
ii libgnutls13 2.0.4-1 the GNU TLS library - runtime libr
ii libkrb53 1.6.dfsg.3~beta1-2 MIT Kerberos runtime libraries
ii libldap2 2.1.30.dfsg-13.5 OpenLDAP libraries
ii libpam0g 0.99.7.1-5 Pluggable Authentication Modules l
ii libpaper1 1.1.23 library for handling paper charact
ii libslp1 1.2.1-7.1 OpenSLP libraries
ii lsb-base 3.1-24 Linux Standard Base 3.1 init scrip
ii perl-modules 5.8.8-12 Core Perl modules
ii procps 1:3.2.7-5 /proc file system utilities
ii ssl-cert 1.0.14 Simple debconf wrapper for openssl
ii xpdf-utils [poppler-u 3.02-1.3 Portable Document Format (PDF) sui
Versions of packages cupsys recommends:
pn avahi-utils <none> (no description available)
ii cupsys-client 1.3.5-1 Common UNIX Printing System(tm) -
ii foomatic-filters 3.0.2-20061031-1.2 linuxprinting.org printer support
ii smbclient 3.0.28-2 a LanManager-like simple client fo
-- debconf information:
cupsys/raw-print: true
cupsys/backend: ipp, lpd, parallel, scsi, serial, socket, usb, snmp, dnssd
More information about the Pkg-cups-devel
mailing list