bionicle32 has asked for the wisdom of the Perl Monks concerning the following question:

Hello Everyone, I want to first thank you for all being so helpful. Being part of this forum has helped me work through several problems I have had with developing web app's. I have a new question. Has anyone every created a script that would generate multiple pages for printing on the fly? I have a script that creates a page on the fly based off of an item number input by the user. I was wondering if there could possibly be a way to print multiple pages instead of one at a time. If anyone could offer up suggestions for printing multiple pages on the fly I would greatly appreciate it. Thanks - Bionicle32

Replies are listed 'Best First'.
Re: Print Multiple Pages
by Roger (Parson) on Nov 11, 2003 at 04:54 UTC
    Has anyone every created a script that would generate multiple pages for printing on the fly?

    Do you mean printing to the printer?

    I was wondering if there could possibly be a way to print multiple pages instead of one at a time.

    Have you thought about generating multi-page PDF's on the fly (Web based solution)? Or to use a2ps utility if you are on Unix/Linux and printing text?

Re: Print Multiple Pages
by BUU (Prior) on Nov 11, 2003 at 07:47 UTC
    If it's for a terminal, just pipe it through more. If it's for the web, generate an algorithm to guess how high the total page is, divide by the pagesize and print, being sure to keep track of which page yer on.

    This is of course vastly easier said then done.