Adding page breaks for printing

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
waskelton4
Forum Contributor
Posts: 132
Joined: Mon Sep 09, 2002 6:42 pm

Adding page breaks for printing

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

dynamically generate a PDF. search for 'fpdf'
Post Reply