summaryrefslogtreecommitdiff
path: root/target/printtarg.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2015-11-06 07:40:42 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2015-11-06 07:40:42 +0100
commitc6739b6427261ac2682a9fca3b23c98df0dc9f60 (patch)
treea90193f98739ad96e6ae676409022bd15a648aae /target/printtarg.c
parentc6267b450e6858fdff4360104b362d9da2e1806d (diff)
New upstream release
Diffstat (limited to 'target/printtarg.c')
-rw-r--r--target/printtarg.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/target/printtarg.c b/target/printtarg.c
index 863537f..1b03b3c 100644
--- a/target/printtarg.c
+++ b/target/printtarg.c
@@ -2912,8 +2912,8 @@ void usage(char *diag, ...) {
fprintf(stderr," -b Force B&W spacers\n");
fprintf(stderr," -n Force no spacers\n");
fprintf(stderr," -f Create PostScript DeviceN Color fallback\n");
- fprintf(stderr," -w g|r|s|n White colorspace encoding DeviceGray (def), DeviceRGB, Separation or DeviceN\n");
- fprintf(stderr," -k g|c|s|n Black colorspace encoding DeviceGray (def), DeviceCMYK, Separation or DeviceN\n");
+ fprintf(stderr," -w g|r|s|n White colorspace encoding: DeviceGray (def), DeviceRGB, Separation or DeviceN\n");
+ fprintf(stderr," -k g|c|s|n Black colorspace encoding: DeviceGray (def), DeviceCMYK, Separation or DeviceN\n");
fprintf(stderr," -o k|r|n CMY colorspace encoding DeviceCMYK (def), inverted DeviceRGB or DeviceN\n");
fprintf(stderr," -e Output EPS compatible file\n");
fprintf(stderr," -t [res] Output 8 bit TIFF raster file, optional res DPI (default 100)\n");
@@ -3645,12 +3645,16 @@ char *argv[];
}
}
- if (verb) {
- if (pap != NULL)
+ if (pap != NULL) {
+ sprintf(buf, "%.1fx%.1f",pap->w, pap->h);
+ if (verb)
printf("Paper chosen is %s [%.1f x %.1f mm]\n", pap->name, pap->w, pap->h);
- else
+ } else {
+ sprintf(buf, "%.1fx%.1f",cwidth, cheight);
+ if (verb)
printf("Paper chosen is custom %.1f x %.1f mm\n", cwidth, cheight);
}
+ ocg->add_kword(ocg, 0, "PAPER_SIZE", buf, NULL);
if (rstart == -1) {
rstart = clk % npat;