使用php将mysql数据库表内容导出为PDF文件 [英] export mysql database table contents on to a PDF file using php

查看:294
本文介绍了使用php将mysql数据库表内容导出为PDF文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将MySQL数据库表内容导出到PDF文件.它必须在网站上显示为download/print data.当客户单击该按钮时,他/她必须打开PDF或选择使用php下载包含表的所有内容的PDF.

How to export MySQL database table contents on to a PDF file. It has to be displayed in the website as download/print data. When the customer click on that he/she has to get the PDF opened or an option to download the PDF with all the contents of the table using php.

推荐答案

看看 http://www.tcpdf .org/.我从未听说过将MySQL表格数据打印为PDF的即用型方法,但是使用TCPDF,您可以以编程方式构建一个PDF文件,并在其中填充数据.它还允许将即时创建的文档轻松输出到浏览器中.

Take a look at http://www.tcpdf.org/. I never heard about out of box way to print mysql table data into PDF, but with TCPDF you can programmatically build a PDF file with table filled with data inside it. It also allows to output document created on the fly easily into a browser.

这篇关于使用php将mysql数据库表内容导出为PDF文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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