[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#410011: html2ps: Honour PAPERSIZE environment variable

On Wed, Feb 07, 2007 at 01:10:32PM +1100, Trent Buck wrote:
> Package: html2ps
> Version: 1.0b5-1
> Severity: wishlist
> AFAICT, html2ps always generates pages of size letter, as this is what
> is hard-coded in /etc/html2psrc.
> The libpaper-utils package provides a mechanism for setting a
> host-wide paper size (/etc/papersize), which can be overridden by
> users using the PAPERSIZE environment variable.  The desired paper
> size can be queried with `paperconf -n`.
> It would be nice if these values were used rather where available, so
> that my scripts do not need to add the arguments
>     -S "@html2ps { paper { type: `paperconf -n` } }"
> when invoking html2ps.

Looking at the html2ps source code, line 29 does call paperconf.
Therefore, html2ps already behaves correctly, and the default
/etc/html2psrc is breaking it.

The "paper { type: letter; }" setting should be removed from
Trent Buck, Student Errant

Attachment: signature.asc
Description: Digital signature

Reply to: