A4 height

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
rsmarsha
Forum Contributor
Posts: 242
Joined: Tue Feb 08, 2005 4:06 am
Location: Leeds, England

A4 height

Post by rsmarsha »

I have a file which pulls out records from a given month. Each record is printed on a blank html page after the previous one.

The problem is i need to somehow set the height of each record to the height of an A4 page. So the whole file can be printed, i've tried using the "height" attribute with a div tag in both html, and using css. Nothing seems to do it.

Any ideas?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

write the pages to PDF with fpdf.. see the code snippets section for an example of working with it.
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

Glad to see someone here just down the road from me in sunny Yorkshire ;)

As feyd said, i think the best way forward will be to output your reults to a PDF. It will be way to tricky to get the A4 height correct any other way.

Check out viewtopic.php?t=30157 for a quick sample of the PDF creation.

Should get ya started
Post Reply