如何将php文件转换为pdf文件 [英] how to convert the php file in to pdf file
本文介绍了如何将php文件转换为pdf文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想将php文件转换为pdf文件,我不知道如何转换它.有人可以帮我吗?
I want to convert the php file into pdf file, i don't know how to convert it. can any one help me?
推荐答案
这取决于您实际需要的转换".如果要使用PHP创建PDF,则可以使用很多库.您还可以构建HTML页面,并将其转换为PDF.这是一对夫妇来看看
It depends on what you actually need "converting". If you want to create a PDF from PHP then there are of lots of libraries to allow you to do it. You can also build a HTML page and have that convert to a PDF too. Here are a couple to take a look at
https://github.com/dompdf/dompdf
这篇关于如何将php文件转换为pdf文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文