Page 1 of 1

A4 height

Posted: Tue Feb 08, 2005 4:09 am
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?

Posted: Tue Feb 08, 2005 4:11 am
by feyd
write the pages to PDF with fpdf.. see the code snippets section for an example of working with it.

Posted: Tue Feb 08, 2005 6:27 am
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