PHP中的Excel到PDF转换

It is asked to me to do a small excel to pdf conversion.

Let me describe what is exactly to be done. in excel file there are list of companies which looks like this... enter image description here

and to retrieve a company name turn into this in PDF format, like this...

enter image description here

I am thinking to follow a path...

1-using php and js I will get excel file with "input type=file"

2-using pdf reader php script I will retrieve the data required.

After this I am confusing...

3-I can retrieve data by searching and parsing a company name( for example getting an input: "company:A") till next keyword of "company" for all columns

or should I put all data from excel into CSV file and do the parsing part there???

4- after that, I am thinking to use, one of the tcpdf example methodologies however here comes another confusing point for me... because I don't know which type of output should get from excel or csv and load into pdf converter method.

An enlightening path would be appreciated since I am confused

Regards

Build your Data on HTML format first then if you got the correct display on html then you can now convert it to a PDF file.