Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Any working postscript formatter (a2ps, etc) ?

Any working postscript formatter (a2ps, etc) ?
Thread Tools
Zim
Senior User
Join Date: Apr 2001
Location: Cary, NC
Status: Offline
Reply With Quote
Oct 13, 2003, 08:29 PM
 
Is there any working port of something like a2ps (pretty print)?

I've tried my own install of a2ps, as well as the fink install, with no success.

Anything I try to print yields

Code:
>a2ps .login [.login (plain): 1 page on 1 sheet] request id is C60_SerieshUSBi-123 (1 file(s)) [Total: 1 page on 1 sheet] sent to the default printer
with no actual printer output. Not sure what directory to watch for the printer queue?

Thanks,
Mike

PS. What about in 10.3?
     
Zim  (op)
Senior User
Join Date: Apr 2001
Location: Cary, NC
Status: Offline
Reply With Quote
Oct 13, 2003, 08:52 PM
 
Ok, I searched around and found enscript... I'm having _some_ luck with it (based on something I found at macosxhints) , tho the margins seem off (just of the page on the left side in landscape 2 col mode, and too much gap at the top, in 1 col normal).

Code:
enscript -h -r -G -E -i 2 -fCourier7 -o - .login | ps2pdf - | lpr
Using --list-options, the page size seems the same as what I see in the a2ps config files for Letter.

I get the same result with
Code:
a2ps -o - .login | ps2pdf - | lpr
Code:
>a2ps --list-options Configuration status of a2ps 4.12 ================================= Sheets: ------- medium = Letter, landscape page layout = 2 x 1, rows first borders = yes file alignment = page interior margin = 0 Virtual pages: -------------- number lines = no format = 80 characters per line tabulation size = 8 non printable format = caret (i.e., `^C', `M-^C' etc.) Headers: -------- header = %a left footer = #?l!%E!#?v|%E|%s./%s#|! footer = #?l|#!s-$f-, -|| right footer = #?l!%s./%s#!#?v|%s./%s#|%E|! left title = #?2||$e $T| center title = #?1|$t1|$n| right title = #?2|$t2|$Q| under lay = Input: ------ truncate lines = no interpret = yes end of line = any type encoding = ISO-8859-1 document title = #10!f|$n|, | prologue = bw print anyway = no delegating = yes Pretty-printing: ---------------- style sheet = selected automatically highlight level = normal strip level = 0 Output: ------- destination = sent to the default printer version control = numbered backups of files already numbered, and simple of others backup suffix = ~ PostScript: ----------- magic number = %!PS-Adobe-3.0 Printer Description (PPD) = selected automatically default PPD = level1 page label format = #{pl.short} number of copies = 1 sides per sheet = Simplex page device definitions = statusdict definitions = page prefeed = no Internals: ---------- verbosity level = 2 file command = /usr/bin/file -L temporary directory = /tmp library path = /Users/zimmy/.a2ps /sw/share/a2ps/sheets /sw/share/a2ps/ps /sw/share/a2ps/encoding /sw/share/a2ps/afm /sw/share/ogonkify/afm /sw/share/a2ps/ppd /sw/share/a2ps/fonts /sw/share/ogonkify/fonts
Mike
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 03:57 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2