[thelist] How can I throw a page when printing a web page?

Burhan Khalid thelist at meidomus.com
Sat Jul 12 06:50:03 CDT 2003


Friday, July 11, 2003, 11:05:02 PM, john wrote:

jjcu> Hi

jjcu> I've developed a web-site that's supposed to double-up as a brochure and
jjcu> the client wants to print the whole thing with one command. So I created a
jjcu> single file with lots of php include statements to import all the
jjcu> individual pages. Of course, now the pagination is all wrong. Is there
jjcu> something I can insert to throw a page, a printer escape sequence maybe?

The only thing that I know along these lines that's web based is the
CSS pagination rule for print stylesheets. I'm not sure how
compatible/browser complaint that is, but its the only thing that came
to my mind.

Another thing ... but a bit more restrictive, are the customized print
templates that are only IE 5.5+ They allow you to control the
header/footer that the browser prints, and other system specific
features. Of course, this isn't PHP ... but if this is a make-or-break
thing, it might be worth a look.



-- 
Regards,
Burhan Khalid
thelist[at]meidomus[dot]com
http://www.meidomus.com



More information about the thelist mailing list