动态创建带有背景图像的PDF [英] Dynamically create a PDF with a background image

查看:85
本文介绍了动态创建带有背景图像的PDF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试动态创建PDF(在服务器上),并在预定义的背景图片上添加一些文本.我正在使用PHP,但似乎还是找不到这样做.

I'm trying to dynamically create a PDF (on the server) with some text on top of a pre-defined background image. I'm using PHP and I can't seem to find anyway to do this.

我研究了 http://www.fpdf.org/和许多其他选项

I've looked into http://www.fpdf.org/ and a bunch of other options.

我也不反对使用Flash来解决问题.

I'm not opposed to using Flash either if it will do the trick.

有人对如何使它起作用有任何想法吗?

Does anyone have any ideas on how to get this to work?

推荐答案

您应该看看上课,我真的很喜欢. 它将HTML呈现为PDF,如果您使用CSS定义背景图片,它将在创建的PDF中.

You should take a look at this class, I really love it. It renders HTML to PDF, and if you define a Background-Image with CSS it will be in the created PDF.

这篇关于动态创建带有背景图像的PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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