Your message dated Mon, 10 Mar 2008 12:53:11 +0100 with message-id <1205149992.16717.9.camel@cyclope.server.maison> and subject line Re: Bug#469730: cupsys: [PATCH] for the new pdftops filter - add support for custom pagesize (needed by firefox 3 beta 3) has caused the Debian Bug report #469730, regarding cupsys: [PATCH] for the new pdftops filter - add support for custom pagesize (needed by firefox 3 beta 3) to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org immediately.) -- 469730: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=469730 Debian Bug Tracking System Contact owner@bugs.debian.org with problems
--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: cupsys: [PATCH] for the new pdftops filter - add support for custom pagesize (needed by firefox 3 beta 3)
- From: Alban Browaeys <prahal@yahoo.com>
- Date: Thu, 06 Mar 2008 20:08:17 +0100
- Message-id: <[🔎] 20080306190817.27678.57682.reportbug@cyclope.server.maison>
Package: cupsys Version: 1.3.6-1 Severity: important Tags: patch Firefox 3 beta 3 use custom pagesize (there is a hack to try to get near standard pages in most cases in pre beta 4 but it won't work in all cases). First thank you for th new pdftops filter that works with poppler-utils. This patch check if there is a custom pagesize defined before feeding ppdPageSize with NULL. (btw the doc does not state what null is supposed to do ...). I believe other application may be affected in fact any that renders pdf and use custom pagesize. In the hope that it ll be of use. Best regards Alban -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.25-rc2-git6 (SMP w/1 CPU core) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages cupsys depends on: ii adduser 3.106 add and remove users and groups ii cupsys-common 1.3.6-1 Common UNIX Printing System(tm) - ii debconf [debconf-2.0] 1.5.19 Debian configuration management sy ii ghostscript [gs-esp] 8.61.dfsg.1-1.1 The GPL Ghostscript PostScript/PDF ii gs-esp 8.61.dfsg.1-1.1 Transitional package ii libavahi-compat-libdn 0.6.22-2 Avahi Apple Bonjour compatibility ii libc6 2.7-9 GNU C Library: Shared libraries ii libcupsimage2 1.3.6-1 Common UNIX Printing System(tm) - ii libcupsys2 1.3.6-1 Common UNIX Printing System(tm) - ii libdbus-1-3 1.1.20-1 simple interprocess messaging syst ii libgnutls26 2.2.2-1 the GNU TLS library - runtime libr ii libkrb53 1.6.dfsg.3~beta1-3 MIT Kerberos runtime libraries ii libldap-2.4-2 2.4.7-6 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.2-4 Linux Standard Base 3.2 init scrip ii perl-modules 5.8.8-12 Core Perl modules ii poppler-utils [xpdf-u 0.6.4-1 PDF utilitites (based on libpopple ii procps 1:3.2.7-6 /proc file system utilities ii ssl-cert 1.0.16 simple debconf wrapper for OpenSSL Versions of packages cupsys recommends: ii avahi-utils 0.6.22-2 Avahi browsing, publishing and dis ii cupsys-client 1.3.6-1 Common UNIX Printing System(tm) - ii foomatic-filters 3.0.2-20080211-3 OpenPrinting printer support - fil ii smbclient 3.0.28-2+b1 a LanManager-like simple client fo -- debconf information: cupsys/raw-print: true cupsys/backend: ipp, lpd, parallel, scsi, serial, socket, usb, snmp, dnssd--- pdftops.c.old 2008-03-06 19:59:25.000000000 +0100 +++ pdftops.c 2008-03-06 19:53:41.000000000 +0100 @@ -178,7 +178,10 @@ * Set output page size... */ - size = ppdPageSize(ppd, NULL); + if ((val = cupsGetOption("PageSize", num_options, options)) != NULL) + size = ppdPageSize(ppd, val); + else + size = ppdPageSize(ppd, NULL); if (size) { /*
--- End Message ---
--- Begin Message ---
- To: Martin Pitt <mpitt@debian.org>
- Cc: 469730-done@bugs.debian.org
- Subject: Re: Bug#469730: cupsys: [PATCH] for the new pdftops filter - add support for custom pagesize (needed by firefox 3 beta 3)
- From: Alban Browaeys <prahal@yahoo.com>
- Date: Mon, 10 Mar 2008 12:53:11 +0100
- Message-id: <1205149992.16717.9.camel@cyclope.server.maison>
- Reply-to: prahal@yahoo.com
- In-reply-to: <[🔎] 20080310080450.GA26719@piware.de>
- References: <[🔎] 20080306190817.27678.57682.reportbug@cyclope.server.maison> <[🔎] 20080310080450.GA26719@piware.de>
> > Alban Browaeys [2008-03-06 20:08 +0100]: > > Firefox 3 beta 3 use custom pagesize (there is a hack to try to get near > > standard pages in most cases in pre beta 4 but it won't work in all > > cases). > > First thank you for th new pdftops filter that works with poppler-utils. > > > > This patch check if there is a custom pagesize defined before feeding > > ppdPageSize with NULL. (btw the doc does not state what null is supposed > > to do ...). > > > > I believe other application may be affected in fact any that renders pdf > > and use custom pagesize. > > Reply from upstream: > > --------- snip ---------- > The patch isn't valid - custom page sizes are already set in the > cupsMarkOptions() call. > > Passing NULL for the size name returns the currently marked size - will > add documentation for that. > > What options are being passed to the filter? > > (a debug error_log file will show the options...) > --------- snip ---------- I found the real problem . This patch was not needed . The issue is that with locale that have comma as the decimal separator and the patch we have that cast width and length to int the value for paperw and paperl ended up as 0 - http://cups.org/str.php?L2716 . With one of my patch for gtk cups print backend Custom papersize string builder http://bugzilla.gnome.org/show_bug.cgi?id=521548 the issue is gone. Hem ... btw do you know which one of the patch is correct ? Should Custom width and height be integer or could they be float (even though only float with dot as the decimal separator ?) Because if they could be float my patch works but there are other issues to fix (http://cups.org/str.php?L2716 cast to integers thus lose precision and foomatic-rip handle flaot with decimal separator but seems to have glitches with them ) Thanks a lot Alban
--- End Message ---