You are here: Php.net/pdf -> Making a PDF from the invoice « PHP « IT news, forums, messages
Php.net/pdf -> Making a PDF from the invoice

Posted by "Matt Babineau" on 06/10/05 00:40

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@criticalcode.com

-----Original Message-----
From: Kristen G. Thorson [mailto:kthorson@allegroconsultants.com]
Sent: Thursday, June 09, 2005 2:05 PM
To: php-general@lists.php.net
Subject: Re: [PHP] 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@criticalcode.com
>
>-----Original Message-----
>From: Marcus Bointon [mailto:marcus@synchromedia.co.uk]
>Sent: Thursday, June 09, 2005 5:02 AM
>To: PHP General
>Subject: Re: [PHP] 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@synchromedia.co.uk | http://www.synchromedia.co.uk
>
>--
>PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
>http://www.php.net/unsub.php
>
>
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация