After using the FPDF library, I came to know that making PDF using the same is so time consuming. And some time it is not possible to develop the report as per the users requirement because of its limitation. Then I found the DOMPDF library in which we just need to pass the HTML code as string to the its class and the PDF will be generated. Even thought it has some limitations but for some level this is the best way of generating PDF through PHP.
The link and the example for this is as given below:
http://www.digitaljunkies.ca/dompdf/
<?php
require_once("dompdf_config.inc.php");
$html = '<html><body>'.
'<p>Put your html here, or generate it with your favourite '.
'templating system.</p>'.
'</body></html>';
$dompdf = new DOMPDF();
$dompdf->load_html($html);
$dompdf->render();
$dompdf->stream("sample.pdf");
?>
so guys take the advantage of such a nice efforts…
..
Categories: Open Source, programming Tags: advantage, body, config, config php, dompdf, example, favourite, generating, HTML, html code, html pdf, html to pdf, inc, level, library, limitation, link, load, lt, PHP, php html, PHP to PDF, report, requirement, sample, site, site php, stream, string, string class, System, time, time consuming, way, www ca This is the first ever library I have used in the starting days of my career…
this is one of the most powerful and FREE library which gives us easy ways to generate PDF file from PHP code. The source of this library you can get from the link given below
http://fpdf.org
this site contains tutorial, manual and everything else u require to use this library
so guys use it and if at all u find any difficulty then please let me know..
so we can sort it out together
..
Categories: Open Source Tags: career, code source, difficulty, easy pdf, everything, FPDF, Free, free library, generate pdf, link, MYSQL, MYSQL tables to PDF, PDF, pdf file, PHP, php code, php pdf, php source, PHP to PDF, site, tutorial hey friends this is Jigish Thakar from India
i m full time PHP developer and now part time blogger
what made me start my own blog is that while doing my job i found so many difficulties and solutions for them in so many different blogs and forums
but never got chance to thank them coz of my busy schedule
because in many blogs it requires registration before giving any comment….
so i have decided to start my own blog where i ll put their solution and will provide a link to their blog to give my thanks and regards to them
soo guys you can also participate in this by investing some little time from your busy schedule and post your valuable comments…
Categories: Tags: ajax, ajax file upload, atk, atk framework, basic, Beginners, blog, blogger, blogs, busy schedule, chance, classes, comment, compression, coz, developer, doing my job, dompdf, dylx, dylx-infotech, flash, flash charts, forms, FPDF, free traffic system, full time, GD image library, graphics, hey friends, html to pdf, iframe, image compression, india, javascript, jigish, jigish thakar, link, little time, math string, mathematical expression php, move file to folder, MYSQL, MYSQL tables to PDF, object oriented, part time, PDF, PHP, PHP Beginners, php charts, php script, PHP to PDF, registration, solution, soo, string execution, thakar, time php