views:

82

answers:

5

Hi

I am displaying all the users in the form using php where the data are fetched from db.

When i click on the icon all users data should be show in a pdf.

How should this can be done.

kindly advice.

thanks in advance

A: 

take a look at fpdf.

oezi
A: 

It depends how much effort you want to put in, but one way is via XSL-FO. If you're interested, have a look at Apache FOP.

Skilldrick
A: 

the easy way is to use html2pdf class from here:

http://www.tecnick.com/public/code/cp_dpage.php?aiocp_dp=tcpdf_examples

Dobiatowski
A: 

For info about pdf libraries for PHP visit this stackoverflow link: http://stackoverflow.com/questions/560583/which-is-the-best-pdf-library-for-php

You will find there (as someone else suggested) this is a useful link: http://www.tecnick.com/public/code/cp_dpage.php?aiocp_dp=tcpdf_examples

ozke
+1  A: 

http://www.phpclasses.org/package/421-PHP-Free-PDF-generation-class-without-PDFlib.html#download

works cool and got the perfect output.

Fero