如何在php中将页面另存为pdf [英] How to save a page as pdf in php

查看:159
本文介绍了如何在php中将页面另存为pdf的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道我如何在php中将页面另存为pdf吗?

Does anyone know how I can save a page as pdf in php?

示例: 我有一个能够捕获用户签名的页面.现在,我想在页面上创建一个按钮,将页面转换为pdf,以便可以将文件保存到文件夹中.

Example: I have a page that is able to catch the users signature. Now I would like to create a button on the page that will convert the page into pdf so that the file can be saved to a folder.

在下面您可以看到签名页面的外观:

Below you can see what the signature page looks like:

推荐答案

有许多PHP PDF API和工具可以转换或包装html内容,包括图形,链接和图像等.

There are a number of PHP PDF API and tools which convert or wrap up html content including drawings, links and images etc.

StackOverflow中的一个很好的线程:

A very good thread from StackOverflow :

  1. 使用PHP将HTML转换为PDF

这篇关于如何在php中将页面另存为pdf的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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