a2ps ASCII to Postscript

Post tutorials, HOWTO's and other useful resources here.
Bogomips
Full of knowledge
Full of knowledge
Posts: 2564
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

a2ps ASCII to Postscript

Post#1 by Bogomips » 20 Jan 2015, 14:41

Trying to run a2ps to convert a plaintext file to postscript.

Code: Select all

# Activate
root@porteus:/home/guest# activate /tmp/usm/a2ps-4.14-i486-5.xzm 
Updating shared library links:  /sbin/ldconfig

# Setup
cp hse/a2psrc .a2psrc
guest@porteus:~$ cat .a2psrc 
# A4 for Desk Jets (Config file in Current Directory):  local file (`./.a2psrc')
# Medium: A4dj    595    842    24    50    571    818
#      NAME     W      H     LLX   LLY   URX    URY

guest@porteus:~$ a2ps -o xzmod.ps xzmod.sh 
a2ps: cannot find file `c0419bt_.afm': No such file or directory
c0419bt_.afm

Code: Select all

guest@porteus:~$ cp p10/Por/c0419bt_.afm .
guest@porteus:~$ a2ps -o xzmod.ps xzmod.sh 
a2ps: cannot find file `c0419bt_.afm': No such file or directory

# Set Search Path
guest@porteus:~$ echo $'\n'"AppendLibraryPath: ./" >> .a2psrc
guest@porteus:~$ cat .a2psrc 
# A4 for Desk Jets (Config file in Current Directory):  local file (`./.a2psrc')
# Medium: A4dj    595    842    24    50    571    818
#      NAME     W      H     LLX   LLY   URX    URY
Medium: A4      595    842    24    24    571    768
AppendLibraryPath: ./

# Run
guest@porteus:~$ a2ps -o xzmod.ps xzmod.sh 
[xzmod.sh (Bourne Shell): 3 pages on 2 sheets]
[Total: 3 pages on 2 sheets] saved into the file `xzmod.ps'
[7 lines wrapped]


Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB