dongliyan7318 2019-01-22 23: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 00: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 Codesys配置ethercat错误
  • ¥15 mstsc远程桌面轮流掉线
  • ¥15 求一下oivio数据集
  • ¥15 android开发百度网盘文件浏览功能,是什么做的?用的什么技术实现?
  • ¥20 地震波形数据向量化的问题
  • ¥15 脊柱MRI图片分割与自动识别
  • ¥50 使用ADC0809 与 51 单片机设计电路以实现显示电压模拟值
  • ¥15 QGC打开没有地图显示,离线地图也不显示,如何解决?
  • ¥20 Android Studio 的 webview 与访问网络存在的限制
  • ¥15 某帖子的数据集不清楚来源,求帮助