Page 1 of 1

Adding page breaks for printing

Posted: Fri Mar 18, 2005 11:26 am
by waskelton4
I have a problem here that I have almost no clue how to handle..

I have a page that is created from a database of multiple fields that can be multiple lengths.

This page needs to be printed on special form paper that has about 2 inches of space at the top that must not be printed on. ( it is used for admin purposes)

The problem is that there is no way (that I can see) to tell where exactly the page break is going to be. If there was i would also need to add in that 2 inches of space before the data begins printing again.

Is there anyway I can do this with CSS to be compatible with IE 5 - 6?

The app is developed in PHP so maybe I'll need to count characters or something similar to determine when my page is full and to insert a break.

Any Ideas?

Many Thanks
Will

Posted: Fri Mar 18, 2005 9:58 pm
by feyd
dynamically generate a PDF. search for 'fpdf'