package ppdfilt
tags 423387 + patch
thanks
Attached is a patch to make ppdfilt's nup work. It is really only
a single line to add. This patch is in production use here for
over an year. It would be nice if youl be added.
Thanks in advance,
Bernhard R. Link
diff -u -r libppd-0.10.OLD/src/ppdfilt.c libppd-0.10/src/ppdfilt.c
--- libppd-0.10.OLD/src/ppdfilt.c 2008-08-18 14:25:51.000000000 +0000
+++ libppd-0.10/src/ppdfilt.c 2008-08-18 14:34:25.000000000 +0000
@@ -554,7 +554,9 @@
if (NUp > 1)
puts("userdict begin\n" "/ESPshowpage /showpage load def\n"
- "/showpage { } def\n" "end");
+ "/showpage { } def\n"
+ "/setpagedevice {pop}bind 1 index where{dup wcheck{3 1 roll put}{pop
def}ifelse}{def}ifelse\n"
+ "end");
if (gamma != 1.0 || brightness != 1.0)
printf("{ neg 1 add dup 0 lt { pop 1 } { %.3f exp neg 1 add } "