tags:

views:

3098

answers:

2

I have a web page (XHTML 1.0 Transitional) which I want to convert to PDF on server and mail the same to an email id as attachment.

The web page is dynamically loaded with information that comes from 4 different table from MySQL. So it is not a static HTML page.

The solution should work on almost servers whether they are linux or windows.

I would prefer to use FPDF 1.6 as it is free. But if there are any other more efficient, free alternatives then that is not a problem.

+1  A: 

Take a look: http://hulan.info/item/html2pdf-convert-your-xhtml-to-pdf-easily But I haven´t used this yet, but I belive you can expect problem with complex layouts.

julioc
I don't think this will do it seems to work in browser. I want it to work on server. I can code to print each element of web page in FPDF but that is a tedious task. What I want is an easy and fast way to generate PDFs from a given PHP page.
Yogi Yang 007
I tested html2pdf. It is not working at all. It cannot render well formatted web pages. It is fast like lightning but useless for me.
Yogi Yang 007