[gl-como] Fwd: Scriptini mpage x Doc

Damiano Venturin gl-como@lists.linux.it
Fri, 21 Mar 2003 14:08:22 +0100


--------------Boundary-00=_YHO3I1F5HDZXB7K8VCUK
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable



----------  Messaggio inoltrato  ----------

Subject: Scriptini mpage
Date: Mon, 3 Mar 2003 00:04:29 +0100
From: _Cri_ <bigamons@libero.it>
To: damiano@venturin.net

Direttamente dalla mia /usr/local/bin...

Cri

--
[    GLUX! - http://www.lecco.linux.it  -  irc.eu.freenode.net -> #glux  =
  ]
[      Signed / encrypted mail welcome  -  GPG/PGP Key-Id: 0x943A5F0E    =
  ]
[       http://www.lecco.linux.it/index.php?link=3Ddocumenti/trad.html   =
    ]

-------------------------------------------------------


--=20
enjoy
Dam
--------------Boundary-00=_YHO3I1F5HDZXB7K8VCUK
Content-Type: text/plain;
  charset="us-ascii";
  name="Allegato: 1"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=lprpdf

#!/bin/sh
# Stampa files pdf 2 pagine per foglio

pdf2ps "$@" /tmp/"$@".ps
mpage -2oba4 -f -dp /tmp/"$@".ps | lpr
rm -i /tmp/"$@".ps

--------------Boundary-00=_YHO3I1F5HDZXB7K8VCUK
Content-Type: text/plain;
  charset="us-ascii";
  name="Allegato: 2"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=lprpdfland

#!/bin/sh
# Stampa files pdf landscape (es lucidi) 4 pagine per foglio

pdf2ps "$@" /tmp/"$@".ps
mpage -Ra -4oba4 -f -dp /tmp/"$@".ps | lpr
rm -i /tmp/"$@".ps

--------------Boundary-00=_YHO3I1F5HDZXB7K8VCUK
Content-Type: text/plain;
  charset="us-ascii";
  name="Allegato: 3"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=lprps

#!/bin/sh
# Stampa in modalita' postscript con 2 pagine per foglio

mpage -2oba4 -f -dp "$@" | lpr

--------------Boundary-00=_YHO3I1F5HDZXB7K8VCUK
Content-Type: text/plain;
  charset="us-ascii";
  name="Allegato: 4"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=lprpsland

#!/bin/sh
# Stampa files postscript landscape (es lucidi) 4 pagine per foglio

mpage -Ra -4oba4 -f -dp "$@" | lpr

--------------Boundary-00=_YHO3I1F5HDZXB7K8VCUK
Content-Type: text/plain;
  charset="us-ascii";
  name="Allegato: 5"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=lprtxt

#!/bin/sh
# Stampa in modalita' ascii con 2 pagine per foglio

mpage -2oba4 -f -da "$@" | lpr

# Esempi originali trovati sul NG:
#
# Ascii
# #!/bin/sh
# mpage -2 -oll -bA4 -f -da -m40t -S "$@" | lpr
#
# GhostView e PostScript in genere:
# #!/bin/sh
# mpage -2 -oll -bA4 -m-24t-10l-10r-30b -S "$@" | lpr
#
# Manpages
# #!/bin/sh
# man -t "$@" | mpage -2 -o -ll -m-40r0b -S -dp -bA4 | lpr

--------------Boundary-00=_YHO3I1F5HDZXB7K8VCUK--