Speaking of PDF...I was looking at php.net/pdf and couldn't figure out if there was a way I could just dump in the html of the page and have it output as a pdf? Does anyone have any sample code for dumping HTML to PDF format? (Using PDFlib). Didn't seem like the samples on php.net were that good..... Thx- Matt Babineau Criticalcode w: http://www.criticalcode.com p: 858.733.0160 e: matt@xxxxxxxxxxxxxxxx -----Original Message----- From: Kristen G. Thorson [mailto:kthorson@xxxxxxxxxxxxxxxxxxxxxx] Sent: Thursday, June 09, 2005 2:05 PM To: php-general@xxxxxxxxxxxxx Subject: Re: Beautiful HTML Invoice -> Prints like crap! I need somesuggestions! Most web browsers I know of don't print anything specified as background by default. I imagine that functionality extends to CSS-defined background colors and images. I doubt there's a way to change that preference other than setting it manually. If changing the print settings on your machine will not work for you, then you may consider PDF, though it certainly comes with it's own hassles. kgt Matt Babineau wrote: >Ok all - I've been playing with this print styl sheet thing. I can get >the media="print" to behave correctly, but I cannot get table >background colors set. I want to print the table bg colors and >background images. I was hoping this was possible with CSS2. Does >anyone have any input on this? I build some diagrams using html and >graphics which are on the invoice, and I use bgcolor on my tables to >show the separator lines in the line item section with the prices and >such. I don't know how to proceed best, or if I am heading down a dead end with this. Anyone have any more input on this? >Everything I have read so far has been very helpful and I thank you for >that. > > >Matt Babineau >Criticalcode >w: http://www.criticalcode.com >p: 858.733.0160 >e: matt@xxxxxxxxxxxxxxxx > >-----Original Message----- >From: Marcus Bointon [mailto:marcus@xxxxxxxxxxxxxxxxxx] >Sent: Thursday, June 09, 2005 5:02 AM >To: PHP General >Subject: Re: Beautiful HTML Invoice -> Prints like crap! I need >somesuggestions! > >On 7 Jun 2005, at 23:46, Chris Martin wrote: > > >>Is a simple CSS print stylesheet out of the question? >>If the site is marked up properly, this should be trivial, and would >>be much easier/more efficient. >> >> > >CSS is definitely the way to go. Here are some good articles: > >http://www.alistapart.com/articles/printyourway/ >http://www.alistapart.com/articles/goingtoprint/ > >Marcus > >-- >Marcus Bointon >Synchromedia Limited: Putting you in the picture >marcus@xxxxxxxxxxxxxxxxxx | http://www.synchromedia.co.uk > >-- >PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: >http://www.php.net/unsub.php > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php