如何从来自MySQL数据库的动态数据中生成pdf文件? [英] How to generate pdf file from dynamic data coming from mysql database in php?

查看:308
本文介绍了如何从来自MySQL数据库的动态数据中生成pdf文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做一个Web应用程序社会管理系统.在此应用程序中,我想为每个用户分别生成pdf文件.在发票生成过程中,如果有10个用户,则在单击生成PDF"按钮后,应为每个用户分别生成一个pdf格式的发票.我为每个用户生成了发票,但现在我不明白如何将其动态转换为pdf.所以请在这个问题上帮助我?

I am doing one web application society management system. In this application I want to generate pdf file for each user separately. Means during invoice generation , if there are 10 users then for each user separate invoice should get generated as a pdf after clicking on generate PDF button. My invoice got generated for each user but now I dont understand how to convert it into pdf dynamically. So please help me in this question ?

推荐答案

使用以下任何php脚本生成动态PDF文档

Use any of the following php scripts to generate dynamic PDF documents

fpdf: http://www.fpdf.org/

tcpdf: http://www.tcpdf.org/

这篇关于如何从来自MySQL数据库的动态数据中生成pdf文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆