Unix Technical Forum

2 columns printing

This is a discussion on 2 columns printing within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> I'd like to print some html page (with graphics) in two columns for not wasting much of paper. After ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-21-2008, 04:34 AM
B.Yanchitsky@gmail.com
 
Posts: n/a
Default 2 columns printing

I'd like to print some html page (with graphics) in two columns for
not wasting much of paper. After a google search and some tries with
Open Office suit I have not seen any solution for that. If anyone has
had a success in that, please, give a hint.

---
Bogdan

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-21-2008, 04:34 AM
B.Yanchitsky@gmail.com
 
Posts: n/a
Default Re: 2 columns printing

On Sep 5, 6:29 pm, B.Yanchit...@gmail.com wrote:
> I'd like to print some html page (with graphics) in two columns for
> not wasting much of paper. After a google search and some tries with
> Open Office suit I have not seen any solution for that. If anyone has
> had a success in that, please, give a hint.
>
> ---
> Bogdan


Oops, sorry for talking to myself. There is a way for that
(Firefox)-> Print to post script file->( ps2pdf)->(acroread)->Print-
>Page Scaling=Multiple pages per sheet.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-21-2008, 04:34 AM
Giovanni
 
Posts: n/a
Default Re: 2 columns printing

B.Yanchitsky@gmail.com wrote:

>> Open Office suit I have not seen any solution for that. If anyone has
>> had a success in that, please, give a hint.


> Oops, sorry for talking to myself. There is a way for that
> (Firefox)-> Print to post script file->( ps2pdf)->(acroread)->Print-
>> Page Scaling=Multiple pages per sheet.


Use a2ps. Just replace the command lpr with 'a2ps -x' where x is the
number of pages per sheet.

Ciao
Giovanni
--
A computer is like an air conditioner,
it stops working when you open Windows.
Registered Linux user #337974 < http://giovanni.homelinux.net/ >
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-21-2008, 04:34 AM
Eef Hartman
 
Posts: n/a
Default Re: 2 columns printing

Giovanni <lsodgf0@home.net.it> wrote:
> Use a2ps. Just replace the command lpr with 'a2ps -x' where x is the
> number of pages per sheet.


That only works for TEXT data, not with graphics in it.
The data normally is converted to PostScript already by Firefox itself,
and you can then use the "psnup -p <paper-size> -2" command to try to
put that output "2 on a page of that size" (paper-size defaults to A4).

See also the man page for psnup. Note that it will not work with all
possible PS files, as it has to restructure the output.
--
************************************************** ******************
** Eef Hartman, Delft University of Technology, dept. EWI/TW **
** e-mail: E.J.M.Hartman@math.tudelft.nl, fax: +31-15-278 7295 **
** snail-mail: P.O. Box 5031, 2600 GA Delft, The Netherlands **
************************************************** ******************
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-21-2008, 04:34 AM
CBFalconer
 
Posts: n/a
Default Re: 2 columns printing

B.Yanchitsky@gmail.com wrote:
> B.Yanchit...@gmail.com wrote:
>
>> I'd like to print some html page (with graphics) in two columns
>> for not wasting much of paper. After a google search and some
>> tries with Open Office suit I have not seen any solution for that.
>> If anyone has had a success in that, please, give a hint.

>
> Oops, sorry for talking to myself. There is a way for that
> (Firefox)-> Print to post script file->( ps2pdf)->(acroread)->Print
> ->Page Scaling=Multiple pages per sheet.


Keep it simple. Try the pr command, using --columns=NN

--
Chuck F (cbfalconer at maineline dot net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net>


--
Posted via a free Usenet account from http://www.teranews.com

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-21-2008, 04:34 AM
B.Yanchitsky@gmail.com
 
Posts: n/a
Default Re: 2 columns printing

On Sep 6, 1:27 pm, Eef Hartman <E.J.M.Hart...@math.tudelft.nl> wrote:
> The data normally is converted to PostScript already by Firefox itself,
> and you can then use the "psnup -p <paper-size> -2" command to try to
> put that output "2 on a page of that size" (paper-size defaults to A4).
>


Nice, very nice, thanks. My fault was a search for multiple columns,
but not for multiple pages.
And what an abbreviation is this psnup, ;-)
man psnup

PSNUP(1)
PSNUP(1)

NAME
psnup - multiple pages per sheet


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-21-2008, 04:34 AM
Dan C
 
Posts: n/a
Default Re: 2 columns printing

On Thu, 06 Sep 2007 07:26:04 -0400, CBFalconer wrote:

> Keep it simple. Try the pr command, using --columns=NN


Try fixing your non-Netiquette-compliant signature block, you friggin
blowhard doofus. How many times does it have to be pointed out before you
fix it?

> X-Mailer: Mozilla 4.75 [en] (Win98; U)


Bugger off, win-droid.


--
"Bother!" said Pooh, as Christopher Robin pleaded to be spanked again.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-21-2008, 04:34 AM
Giovanni
 
Posts: n/a
Default Re: 2 columns printing

Eef Hartman wrote:
> Giovanni <lsodgf0@home.net.it> wrote:
>> Use a2ps. Just replace the command lpr with 'a2ps -x' where x is the
>> number of pages per sheet.

>
> That only works for TEXT data, not with graphics in it.
> The data normally is converted to PostScript already by Firefox itself,
> and you can then use the "psnup -p <paper-size> -2" command to try to
> put that output "2 on a page of that size" (paper-size defaults to A4).
>
> See also the man page for psnup. Note that it will not work with all
> possible PS files, as it has to restructure the output.


It works for every content in the page because it is not really a
multiple columns but multiple pages per sheet.

I did not have many experiences with a2ps but it works with the
postscript produced by mozilla and firefox.

Ciao
Giovanni
--
A computer is like an air conditioner,
it stops working when you open Windows.
Registered Linux user #337974 < http://giovanni.homelinux.net/ >
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-21-2008, 04:34 AM
Mikhail Zotov
 
Posts: n/a
Default Re: 2 columns printing

On Wed, 05 Sep 2007 09:29:14 -0700
B.Yanchitsky@gmail.com wrote:

> Oops, sorry for talking to myself. There is a way for that
> (Firefox)-> Print to post script file->( ps2pdf)->(acroread)->Print-
> >Page Scaling=Multiple pages per sheet.


Perhaps, an easier way will be:

(Firefox)-> Print to post script file -> ps2ps

For example, if firefox.ps was created for A4 paper,
the second command may look like this:

pstops "2:0L@.7(21cm,5mm)+1L@.7(21cm,145mm)" firefox.ps twocolumn.ps

twocolumn.ps will be a PS file with two pages put on one side of paper.
(`two up').

--
M.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-21-2008, 04:34 AM
Ed Wilson
 
Posts: n/a
Default Re: 2 columns printing

B.Yanchitsky@gmail.com wrote:

> On Sep 5, 6:29 pm, B.Yanchit...@gmail.com wrote:
>> I'd like to print some html page (with graphics) in two columns for
>> not wasting much of paper. After a google search and some tries with
>> Open Office suit I have not seen any solution for that. If anyone has
>> had a success in that, please, give a hint.
>>
>> ---
>> Bogdan

>
> Oops, sorry for talking to myself. There is a way for that
> (Firefox)-> Print to post script file->( ps2pdf)->(acroread)->Print-
>>Page Scaling=Multiple pages per sheet.


If you have kde installed and like the kprinter interface that kde programs
use, you can configure firefox to use that. kprinter has the option of
1,2,or 4 pages per sheet.
(Firefox)-> Print to post script file->(kprinter)


--
Ed
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:44 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com