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

如何使用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

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

报告相同问题?

悬赏问题

  • ¥15 cplex运行后参数报错是为什么
  • ¥15 之前不小心删了pycharm的文件,后面重新安装之后软件打不开了
  • ¥15 vue3获取动态宽度,刷新后动态宽度值为0
  • ¥15 升腾威讯云桌面V2.0.0摄像头问题
  • ¥15 关于Python的会计设计
  • ¥15 聚类分析 设计k-均值算法分类器,对一组二维模式向量进行分类。
  • ¥15 stm32c8t6工程,使用hal库
  • ¥15 找能接spark如图片的,可议价
  • ¥15 关于#单片机#的问题,请各位专家解答!
  • ¥15 博通raid 的写入速度很高也很低