mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2024-11-22 20:51:52 +02:00
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)
This commit is contained in:
parent
081aed3a12
commit
a1c5386236
@ -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 |
|
||||
|
Loading…
Reference in New Issue
Block a user