export to pdf with no phplib
am 20.09.2007 15:06:45 von djazzmusic
I wanted to be able to send a letter to every customer I have on my
database. I bit of research lead me to PHPlib that costs needs setup
etc. So I came up with a really easy way to do that.
1) First add to your css
P.newpage {page-break-before: always}
2) create with css a layout for your page. Echo data on the page.
3) add anytime you are starting a new page
This
will make sure that when you choose to print from your browser a new
page will start.
4) print from your browser or if possible print to pdf.
hope you find this useful.
Re: export to pdf with no phplib
am 20.09.2007 16:33:02 von Steve
wrote in message
news:1190293605.829503.299660@22g2000hsm.googlegroups.com...
>I wanted to be able to send a letter to every customer I have on my
> database. I bit of research lead me to PHPlib that costs needs setup
> etc. So I came up with a really easy way to do that.
>
> 1) First add to your css
> P.newpage {page-break-before: always}
>
> 2) create with css a layout for your page. Echo data on the page.
>
> 3) add anytime you are starting a new page This
> will make sure that when you choose to print from your browser a new
> page will start.
lol. i love html noobs. ah the sweet naivete. you go right ahead and think
that will consistently be taken as an instruction rather than a request.
> 4) print from your browser or if possible print to pdf.
oooo! you mean your site requires each client to install a pdf print driver?
sounds far removed from the 'easy button' you were hoping for...and a lot of
customers who are going to jump ship.
Re: export to pdf with no phplib
am 20.09.2007 16:59:21 von Good Man
djazzmusic@googlemail.com wrote in news:1190293605.829503.299660@
22g2000hsm.googlegroups.com:
> I wanted to be able to send a letter to every customer I have on my
> database. I bit of research lead me to PHPlib that costs needs setup
> etc. So I came up with a really easy way to do that.
FPDF is way easier. A PDF gets created on the SERVER, and then you email
that PDF. Takes a bit of time to get the hang of it, but lots of examples,
it's FREE and it WORKS GREAT!
http://www.fpdf.org/