douyuan9512 2015-05-18 10:33
浏览 229

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

  • 写回答

1条回答 默认 最新

  • dongya0914 2015-05-18 10:38
    关注

    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.

    评论

报告相同问题?

悬赏问题

  • ¥15 划分vlan后不通了
  • ¥15 GDI处理通道视频时总是带有白色锯齿
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)
  • ¥15 自适应 AR 模型 参数估计Matlab程序
  • ¥100 角动量包络面如何用MATLAB绘制
  • ¥15 merge函数占用内存过大
  • ¥15 使用EMD去噪处理RML2016数据集时候的原理
  • ¥15 神经网络预测均方误差很小 但是图像上看着差别太大
  • ¥15 单片机无法进入HAL_TIM_PWM_PulseFinishedCallback回调函数