diff -u cups-1.4.6/debian/changelog cups-1.4.6/debian/changelog --- cups-1.4.6/debian/changelog +++ cups-1.4.6/debian/changelog @@ -1,3 +1,17 @@ +cups (1.4.6-5ubuntu1.1) natty-proposed; urgency=low + + * debian/filters/pstopdf: Let pstopdf determine the page size via + the "PageSize" or "PageRegion" setting in the 5th command line + argument and not via "media". The "media" setting is usually + inserted by CUPS and uses a PWG name of the paper size and not the + name used in the PPD file. This makes Ghostscript being called + without paper size setting and so a PDF file in the default paper + size (A4/Letter) is passed on, breaking any printout from applications + which send jobs in PostScript and which have a non-default paper + size (LP: #787635). + + -- Till Kamppeter Tue, 24 May 2011 17:58:02 +0200 + cups (1.4.6-5ubuntu1) natty; urgency=low * Revert calling "convert" on the banner PNGs (r961); the file is already diff -u cups-1.4.6/debian/filters/pstopdf cups-1.4.6/debian/filters/pstopdf --- cups-1.4.6/debian/filters/pstopdf +++ cups-1.4.6/debian/filters/pstopdf @@ -98,7 +98,7 @@ unit= customw= customh= -eval "$(printf "%s" "$5" | sed -nre 's/.*(^|\s)(media|PageSize)=(\S+).*/pagesize="${pagesize:-\3}"/p')" +eval "$(printf "%s" "$5" | sed -nre 's/.*(^|\s)(PageSize|PageRegion)=(\S+).*/pagesize="${pagesize:-\3}"/p')" if test -e "$PPD"; then eval "$(sed -nre 's/^\*DefaultPageSize:\s*(\S+).*/pagesize="${pagesize:-\1}"/p' "$PPD")" fi