0

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.

user1328273
  • 33
  • 1
  • 12

6 Answers6

2

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 :)

Nanne
  • 64,065
  • 16
  • 119
  • 163
0

Have you taken a look at the DOMPDF project ? It simply rockz...

If that is not enough, you may want to browse StackOverflow itself :

Convert HTML + CSS to PDF with PHP?

Community
  • 1
  • 1
Skippy Fastol
  • 1,745
  • 2
  • 17
  • 32
0

Try using this to automagically convert html to pdf:

www.tcpdf.org

djot
  • 2,952
  • 4
  • 19
  • 28
0

Try this

http://code.google.com/p/wkhtmltopdf/

it works like a charm. :)

Ivan Marjanovic
  • 979
  • 1
  • 9
  • 15
0

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:

DocRaptor

illbzo1
  • 480
  • 3
  • 13
0

I am using this code there is no need to installation of any thing . http://sourceforge.net/projects/html2fpdf/

Nanhe Kumar
  • 15,498
  • 5
  • 79
  • 71