Dynamically creating a pdf doc with user input

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Dynamically creating a pdf doc with user input

Post 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?
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post 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.
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

What if I don't have the ability to have libraries installed on my server?
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

Not that I know of..
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

is that a pretty common library... how would I check if it's installed php_info?
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

:cry: I don't have it. On to plan B...

EDIT: get_loaded_extensions()

What an awesome function :lol:
Last edited by Luke on Fri Apr 07, 2006 7:03 pm, edited 1 time in total.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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...
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

really... hmm I will look around. thanks
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post 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.
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

Found one! http://www.fpdf.org/ doesn't need extensions... looks like it will work. Thanks!
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post 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.
Post Reply