I need to convert the html receipt to pdf file. in html file I also have php information. How can I provide such a thing? could you suggest me with codes.
6 Answers
This is going to be a listing question, but we've used DOMPDF as @skippy suggested, and rejected it because it is a REAL troublemaker when tables surpass a page.
We've moved to http://code.google.com/p/wkhtmltopdf/ , which is -in my opinion- way better. It's being used in a production environment sending out lots of pdfs per day. It uses the webkit rendering enginge (you know, the one that chrome uses) and is therefore awesome :)
Comments
Have you taken a look at the DOMPDF project ? It simply rockz...
If that is not enough, you may want to browse StackOverflow itself :
Comments
My company has a product called DocRaptor that converts HTML to PDF using an HTTP POST request.
DocRaptor is built using Prince, and produces higher quality results than similar programs.
Here's a link to DocRaptor's homepage:
Comments
I am using this code there is no need to installation of any thing . http://sourceforge.net/projects/html2fpdf/