Hi, I can do this task for you very easily. I am a software engineer completed my btech form IIIT Allahabad. I always write high quality codes.
I will also help in making you understand the codes in case u need that. I have a lot of experience in PHP, MySQL, Javascript, JQquery, HTML. I can write a code for you in such way so that you can upload any text file via web UI(I will create that) and it will create a printable report for you.