dongliyan7318 2019-01-23 07:33
浏览 125
已采纳

如何使用php和fpdf创建发票pdf? [关闭]

Here user can order their items and after confirmation of order they can download invoice file. After a quick Google I know about fpdf .but my question is how to create unique users invoice pdf through fpdf and php?
This is my cart page. When user click confirm oder they redirect into success page where they can download their invoice
cart page

[It is success page][2]error in generate unique user pdf code Part -1code part 2code part 3

  • 写回答

1条回答 默认 最新

  • douxing8855 2019-01-23 08:03
    关注

    Firstly I would suggest to use TCPDF

    You can do following steps to generate pdf:

    1. Gather all the data in session.

    2. After confirming order get all the data from the session and use that data in generating pdf file

    3. Use following link to get the example how to generate pdf. TCPDF Examples It will help you to code for generating pdf.

    4. For unique user pdf generation you can rename the file name with user_id + timestamp

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 求一个html代码,有偿
  • ¥100 关于使用MATLAB中copularnd函数的问题
  • ¥20 在虚拟机的pycharm上
  • ¥15 jupyterthemes 设置完毕后没有效果
  • ¥15 matlab图像高斯低通滤波
  • ¥15 针对曲面部件的制孔路径规划,大家有什么思路吗
  • ¥15 钢筋实图交点识别,机器视觉代码
  • ¥15 如何在Linux系统中,但是在window系统上idea里面可以正常运行?(相关搜索:jar包)
  • ¥50 400g qsfp 光模块iphy方案
  • ¥15 两块ADC0804用proteus仿真时,出现异常