Fero
Fero

Reputation: 13315

How to get PHP form data to PDF

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 shown in a PDF.

How should this be done?

Upvotes: 0

Views: 2208

Answers (5)

Fero
Fero

Reputation: 13315

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

works cool and got the perfect output.

Upvotes: 2

ozke
ozke

Reputation: 1620

For info about pdf libraries for PHP visit this stackoverflow link: https://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

Upvotes: -1

Adam Lukaszczyk
Adam Lukaszczyk

Reputation: 4926

the easy way is to use html2pdf class from here:

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

Upvotes: -1

Skilldrick
Skilldrick

Reputation: 70879

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.

Upvotes: -1

oezi
oezi

Reputation: 51817

take a look at fpdf.

Upvotes: -1

Related Questions