From a1c5386236f766aef2592bdb6bc5a5904f1c9331 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Sun, 29 Aug 2010 15:08:03 -0300 Subject: [PATCH] Schematics sheets are now scaled and shifted (may still need some tuning) - scripts/gitsch2ppm (ps2ppm): shift A4 sheets northwest - scripts/gitsch2ppm (ps2ppm): shift and scale A3 and A2 sheets - scripts/gitsch2ppm (ps2ppm): remove "%%Orientation: Landscape" (for later development) --- scripts/gitsch2ppm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/gitsch2ppm b/scripts/gitsch2ppm index 6fd6eb8..e761680 100755 --- a/scripts/gitsch2ppm +++ b/scripts/gitsch2ppm @@ -28,7 +28,13 @@ ps2ppm() /setlinewidth { $LINEWIDTH 2 copy lt { exch } if pop setlinewidth } bind def /rectfill { rectstroke } bind def EOF - sed 1d <"$1"; ) | + sed <"$1" '1d +/%%DocumentMedia: A4.*/a-20 -10 translate +/%%DocumentMedia: A3.*/{s/A3/A4/;a-20 -10 translate 0.70 dup scale +} +/%%DocumentMedia: A2.*/{s/A2/A4/;a-18 -12 translate 0.49 dup scale +} +/%%Orientation: Landscape/d'; ) | gs -sDEVICE=ppmraw -sOutputFile=- -g$IRES -r$res \ -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -q - | pnmflip -r270 |