Question: To generate pdf from html page I have tried many pdf libraries like **FPDF,HTML2FPDF,CEZPDF,DOMPDF and MPDF** .

But in every pdf library I found some issues which don't produce required layout of the page.

For example in MPDF I found page breaks but it was a nice html to pdf converter.

So kindly suggest me which library should I use to generate pdf? I don't care if it needs to purchase.

Thanks in advance.

Answer: 
You can try this <http://www.tcpdf.org/> . Site providing some good examples and also you can design page layout as your own styles
Try HTM2PDF - it supports page breaking, single page layouts and many other options.

A [HTML to PDF API](http://htm2pdf.co.uk/html-to-pdf-api) is available for all programming languages as well as a PHP [HTML to PDF SDK](http://htm2pdf.co.uk/html-to-pdf-sdk).