I would like to know if its possible to extract data from a database and then displayed the data in a pdf file ?

Recommended Answers

I would like to know if its possible to extract data from a database and then displayed the data in a pdf file ?

@Master Mascus

Have you try this:

http://www.phpjabbers.com/create-pdf-file-with-php-php36.html

Jump to Post

All 4 Replies

yes.

google tutorial creating pdf with php.

After having worked on PDF creation in PHP recently myself, I would recommend the TCPDF library over the FPDF library suggested in the tutorial LastMitch posted. Both will do the job fine, but I found the TCPDF library easier to work with, an it has better HTML injection than FPDF, which can sometimes come in handy. They are very similar in how they work, though, and in many cases the method signatures are even identical.

The TCPDF websites lists a lot of useful examples you can learn from.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.