1994 <1995> 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 | Index | 1994 <1995> 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: Postscript Documentation, Whoops! |
From: | [email protected] (Tim Mooney) |
Date: | Wed, 24 May 1995 16:35:24 -0500 |
Whoops! The script I just sent: > #!/bin/sh > # convert Frame postscript "Letter" to "A4" > > if [ $# != 2 ] > then > echo "usage: $0 in out" > exit > fi > sed -e 's/^%%BeginPaperSize: Letter/%%BeginPaperSize: A4/' -e '/^%%Page:/a\ > 28.3 0 translate 0.95 0.95 scale > ' $1 >$2 should have read: > #!/bin/sh > # convert Frame postscript "Letter" to "A4" > > if [ $# != 2 ] > then > echo "usage: $0 in out" > exit > fi > sed -e 's/^%%BeginPaperSize: Letter/%%BeginPaperSize: A4/' -e '/^%%Page:/a\ > 0.95 0.95 scale > ' $1 >$2 (translation is for going from A4 to Letter). By the way, this was hacked from the script 'scaleps.sh' someone yanked out of cern.heplib. Tim