Re: auto generated PDF
| From: | Richard Lynch | Date: | Tue, 01 Apr 2008 14:18:42 +0000 |
| Subject: | Re: auto generated PDF | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-272392@lists.php.net to get a copy of this message | ||
On Sun, March 30, 2008 4:27 am, Alain Roger wrote:
> i want to implement on my web portal electronic invoicing system.
> basically data will be stored into PostgreSQL DB.
>
> I would like to know if someone already have experiences with such
> feature
> or where could i find some tutorials or help about this topic.
Google for "PHP PostgreSQL shopping cart" and find a few hundred
off-the-shelf packages you could use instead of re-inventing the
wheel.
Some have HORRIBLE security histories, so do your research.
> Concretly, user will buy some products/services online and i would
> like to
> send him a PDF invoice via email.
>
> is there a PDF module under PEAR or directly under PHP ?
In addition to the other options given so far:
http://php.net/pdf
is an option, and it's not that tough to build up the PDF the way you
want.
Some more sample code:
http://uncommonground.com/events.phps
I find that thinking in "inches" and using *72 a lot works well for me.
E.g., $page_top = 10.0 * 72; //10 inches
PDFs are always 72 dpi.
Flame wars about the meaninglessness of dpi can please be sent to your
own /dev/null. Thanks.
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/from/lynch
Yeah, I get a buck. So?