Archive

Posts Tagged ‘PHP to PDF’

HTML to PDF (using DOMPDF) – PHP

August 28th, 2008 Jigish Thakar 13 comments

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…

..

PHP to PDF (using FPDF)

August 27th, 2008 Jigish Thakar 5 comments

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

..

About

August 27th, 2008 Jigish Thakar 4 comments

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…