humayoo, you can check html2pdf to do this
it works very fine and it is simple, but just remember not to indent the HTML code too much since the parser may not work 100 % if so
there was also a very good project related called domPDF but unfortunately the development has been discontinued and so i wouldnt recommend you to use it
_______________________________________________
New York PHP User Group Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talkhttp://www.nyphp.org/show_participation.php