-1

Possible Duplicate:
Create a PDF file with PHP

I have created invoice generator using javascript. well I am able to work on it. Now what I have to do is I have to generate the data in the pdf which are available in the invoice. I tried some but none work out. So If there is anyone who can help me out?

Thanx in advance

Community
  • 1
  • 1
Sundar Ban
  • 51
  • 1
  • 8
  • http://www.javaworld.com/javaworld/jw-04-2006/jw-0410-html.html Hope this link will guide you, after that implementation should be a cakewalk. – AurA Jun 28 '12 at 11:35
  • 1
    @Sundar Ban: You are invited to use the search feature of this website before asking a question. As you can imagine, you might not be the first person on earth who would like to know how to create a PDF with PHP. – hakre Jun 28 '12 at 11:41

2 Answers2

2

I have used "webkit html to pdf" (wkhtmltopdf) several times.

It worked well for me, although working with page breaks is a bit of an hassle.

2

PDF cannot be generated at the client side (I mean with Javascript). You will need to process the invoice data at the server side using a PDF library and write to a URL location, so that it can be downloaded or opened in a browser.

TCPDF is a good tool to generate PDF with PHP. See this link.

Also see this question.

Community
  • 1
  • 1
Sree
  • 746
  • 6
  • 21