LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 08-27-2010, 11:55 AM   #1
packer_fan
LQ Newbie
 
Registered: Aug 2010
Posts: 3

Rep: Reputation: 0
a2ps - How to get 80 rows by 130 columns


I have been messing with a2ps in order to print a text file I have that has 130 columns by 80 rows per page. It appears that a2ps automatically scales the number of rows based upon the number of columns I try to print.

For example,
a2ps --columns=1 --rows=1 --portrait --lines-per-page=80 --chars-per-line=130 file.txt -o - | ps2pdf - file.pdf

The file prints properly for the columns but a2ps scales the rows to be 97 rows per page. So the 80 rows print but the next 17 rows are blank. It is not scaling the font for for 80 rows.

I hope this makes sense.

Thanks
Peter
 
Old 08-28-2010, 11:06 AM   #2
makyo
Member
 
Registered: Aug 2006
Location: Saint Paul, MN, USA
Distribution: {Free,Open}BSD, CentOS, Debian, Fedora, Solaris, SuSE
Posts: 718

Rep: Reputation: 72
Hi.

I did not look exhaustively into this, but I got marginally-OK results from:
Code:
a2ps -1 --landscape --lines-per-page=80 --chars-per-line=200
although the cpl could have been slightly smaller for this run.

You may have noticed that there is a relationship between the lpp and the cpl: if the cpl is about right (say 130), then the lpp are too few. Using portrait as opposed to landscape is way too small -- for my eyes as well as for my oldish laser printer.

You may need to do some trial and error, although perhaps someone may stop by with some words of wisdom.

I assume that, like me, you have a kind of template file set up, 130 X 80, on which to test your experiments.

Best wishes ... cheers, makyo
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting 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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert columns of data into rows jaufer Linux - Software 3 06-29-2010 05:19 PM
How to print data in rows and columns suran Linux - General 3 03-15-2009 02:53 PM
text data conversion: rows into columns frankie_DJ Programming 6 06-03-2006 06:43 AM
columns & rows Ammad Linux - General 1 08-08-2005 04:02 AM
rows and columns digitalgravy Linux - General 2 03-16-2004 06:47 PM


All times are GMT -5. The time now is 05:48 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration