ps2ascii (was Re: RE: Samba and printers)

I.Ioannou roryt at hol.gr
Wed Feb 17 03:51:44 EET 1999


On 16-Feb-99 Christos Ricudis wrote:
> "apo postscript se ascii"? an breis kanena tetoio filtro poy na
> douleyei
> kiolas, ferto, to 8elw. 
> 
> (lyseis toy styl "gs -q -sDEVICE=pbm -sOutputFile=- -DNOPAUSE koko.ps
>|
> pbmtoascii" aporriptontai logw anagoulas)

opote to ps2ascii aporeiptetai ? Oso to exw dokimasei douleuei, an kai
oxi me Ellinika : 

#!/bin/sh
# Extract ASCII text from a PostScript file.  Usage:
#       ps2ascii [infile.ps [outfile.txt]]
# If outfile is omitted, output goes to stdout.
# If both infile and outfile are omitted, ps2ascii acts as a filter,
# reading from stdin and writing on stdout.

trap "rm -f _temp_.err _temp_.out" 0 1 2 15

if ( test $# -eq 0 ) then
        gs -q -dNODISPLAY -dNOBIND -dWRITESYSTEMDICT -dSIMPLE -c save
-f ps2ascii.ps - -c quit
elif ( test $# -eq 1 ) then
        gs -q -dNODISPLAY -dNOBIND -dWRITESYSTEMDICT -dSIMPLE -c save
-f ps2ascii.ps $1 -c quit
else
        gs -q -dNODISPLAY -dNOBIND -dWRITESYSTEMDICT -dSIMPLE -c save
-f ps2ascii.ps $1 -c quit >$2
fi

---
I.Ioannou <roryt at hol.gr>
--
====================================================================
Gia boithia (h na diagrafhte) e-mail sto majordomo at hellug.gr
Ta archives tis listas einai sto http://lists.hellug.gr
prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users
====================================================================



More information about the Linux-greek-users mailing list