How to create pdf report in php easily ?

Re: how to create pdf report in php 80 80

If you search this forum, you'll find several solutions.

Re: how to create pdf report in php 80 80
Member Avatar

If you search this forum, you'll find several solutions.

Like what pritaeas mention, read this:

http://www.daniweb.com/web-development/php/threads/427134/create-pdf-from-php-

Re: how to create pdf report in php 80 80

php2pdf is one of the basic programming structure of PHP to pdf.

because of this php2pdf. I concluded my self that it was the HTML, not PHP, to pass down and convert it to pdf. but since dynamic comptuing is needed and want to convert it to pdf, PHP is needed for database retrieval at mathematical computation. But again, it was NOT PHP which is needed by PDF to be converted, thus PDF needs the information from HTML.

Re: how to create pdf report in php 80 80

This may help you i think, i found it in my files i dont use it and i dont know from where i have this script.

You need to download also this, http://www.tecnick.com/public/code/cp_dpage.php?aiocp_dp=tcpdf. i think.

<?php
//include files
require_once($_SERVER['DOCUMENT_ROOT'].'/tcpdf/config/lang/eng.php');
require_once($_SERVER['DOCUMENT_ROOT'].'/tcpdf/tcpdf.php');

// create new PDF document
$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false); 

//add some content using class methods

//Close and output PDF document
$pdf->Output('filename.pdf', 'I');
?>

i dont know if it works but you can try. :)

Re: how to create pdf report in php 80 80

I think games1124u's answer is quite feasible and I think you must have found a solution to your question. Please share it with us or mark above suggestions as a solution.

By the way, I think this post will help you a lot.

http://stackoverflow.com/questions/generate-pdf-report-from-php/create-pdf

Re: how to create pdf report in php 80 80

i think you should use fpdf for creating pdf through php. you have to just add files of fpdf and you can get that from their official site http://www.fpdf.org i think this will be the easiest way to create pdf from php.

Re: how to create pdf report in php 80 80

You may check here

Re: how to create pdf report in php 80 80

Having done some fairly complex pdf generation online, I would recommend tcpdf as having the best feature set. It takes a bit of getting used to but some features (write html direct to the document) can save a lot of time.
http://sourceforge.net/projects/tcpdf/files/
I found the best way to learn is from the 60+ examples included.

Re: how to create pdf report in php 80 80

I,ve use quilhasoft/jasperPHP (https://jasperphp.com/) and in my option, it is a better pure PHP solution to generate reports in PDF, reports can be edit in jasperSoft Studio and just put a jrxml file into php server

Be a part of the DaniWeb community

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