Page 1 of 1
Dynamically creating a pdf doc with user input
Posted: Fri Apr 07, 2006 6:42 pm
by Luke
I was asked by a customer to make him a "Pedigree Creator"
I am making a script that will (hopefully) convert a series of text boxes into a pdf document. Is this possible with PHP?
Posted: Fri Apr 07, 2006 6:48 pm
by John Cartwright
Are you asking if its possible to generate pdf documents in PHP?
If so the answer is yes, there are also other libraries that can accomplish this.
Posted: Fri Apr 07, 2006 6:49 pm
by Luke
What if I don't have the ability to have libraries installed on my server?
Posted: Fri Apr 07, 2006 6:50 pm
by John Cartwright
Not that I know of..
Posted: Fri Apr 07, 2006 6:51 pm
by Luke
is that a pretty common library... how would I check if it's installed php_info?
Posted: Fri Apr 07, 2006 6:59 pm
by John Cartwright
Posted: Fri Apr 07, 2006 7:02 pm
by Luke

I don't have it. On to plan B...
EDIT:
get_loaded_extensions()
What an awesome function

Posted: Fri Apr 07, 2006 7:03 pm
by feyd
there are several libraries for creating PDF files out there, some don't need any external libraries. Poke around. I know a reference to one has been posted quite recently...
Posted: Fri Apr 07, 2006 7:04 pm
by Luke
really... hmm I will look around. thanks
Posted: Fri Apr 07, 2006 7:04 pm
by John Cartwright
feyd wrote:there are several libraries for creating PDF files out there, some don't need any external libraries. Poke around. I know a reference to one has been posted quite recently...
Cool! I thought they all had to be compiled with php

Learn something new everyday or two.
Posted: Fri Apr 07, 2006 7:20 pm
by Luke
Found one!
http://www.fpdf.org/ doesn't need extensions... looks like it will work. Thanks!
Posted: Sat Apr 08, 2006 3:14 am
by onion2k
The Ninja Space Goat wrote:Found one!
http://www.fpdf.org/ doesn't need extensions... looks like it will work. Thanks!
I use FPDF on a few of my projects .. it's ace.