用PHP创建PDF的最佳方法 [英] Best way to create a PDF with PHP

查看:62
本文介绍了用PHP创建PDF的最佳方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在阅读如何使用PHP创建PDF文件,并且想知道最简单的选择是什么.

I've been reading up on creating a PDF file with PHP and am wondering what the easiest option is.

  1. 创建一个PDF模板,将其打开并替换占位符文本 -我要使用哪个功能打开现有的PDF进行编辑?

  1. Create a PDF template, open it and replace placeholder text -- which function do I use to open an existing PDF for editing?

创建一个PDF模板,并使用坐标在其上放置文本

Create a PDF template and place text on it using co-ordinates

创建HTML文档,然后使用某种免费工具将其转换为PDF吗?

Create a HTML document then convert it to PDF using some sort of free tool?

使用PHP从头开始创建PDF(这似乎是一种耗时的方式).

Create a PDF from scratch using PHP (this seams like a time consuming way to do it).

推荐答案

我所知道的最好的是 FPDF .它是用于创建各种PDF布局的出色开源解决方案.谢谢

The one that i know of as being best is the FPDF. It is great open-source solution for creating all sorts of PDF layouts. Thanks

请参阅FPDF教程
和脚本

这篇关于用PHP创建PDF的最佳方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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