Currently we are trying the create a pdf with following of long table but it not handling it in a good way. for better understanding I have attached .txt file containing Html of long table please review that.
First please try printing the html file from Chrome. You can do this by simply opening the file in Chrome and then hitting CTRL-P and selecting to print to PDF.
If that looks correct, then please download the HTML2PDF module and follow the relevant sample on how to convert the file. I have added links for you:
If the Chrome output is not correct, than the HTML file needs to be corrected and adjusted.