Generate PDF report from php

后端 未结 4 1730
醉话见心
醉话见心 2020-11-28 14:50

I am using php code to query to a database and the results will be used to generate a report.

If I want the report to be generated in a pdf format how should I do it

4条回答
  •  渐次进展
    2020-11-28 15:17

    If you need UTF support in your PDF file, consider tcpdf library.

    Download it from here: http://www.tecnick.com/public/code/cp_dpage.php?aiocp_dp=tcpdf

    And in your script:

    Output('filename.pdf', 'I');
    ?>
    

提交回复
热议问题