用PHP创建矢量图形 [英] Creating Vector Graphics with PHP

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

问题描述

我试图在PHP中创建矢量图形。我试过开罗,但是我无法让它开始工作。我明白imageMagick有矢量功能,但php.net上的文档很差,有些人可以引导我朝着正确的方向前进吗?这些想法是为了将图形保存到EPS。我还需要能够使用不同的字体输出文本。

Im trying to create vector graphics in PHP. Ive tried Cairo and I havn't been able to get it to work. I understand that imageMagick has vector functionality but the documentation on php.net is very poor can some one lead me in the right direction? The ideas is to be able to save the graphic to EPS. I also need to be able to use different fonts to output text.

推荐答案

虽然你想创建eps我仍然会旨在创建PDF。 PDF在任何主要软件包中都是完全可编辑的:Adobe Illustrator,Corel Draw,Xara Pro等

Although you're looking to create eps I would still aim to create a PDF. PDF's are fully editable in any major package: Adobe Illustrator, Corel Draw, Xara Pro etc

TCPDF效果很好,并且有一堆代码示例包括字体和对矢量的支持图像eps和ai输出为PDF

TCPDF works well and there is a bunch of code samples including fonts and support for vector images eps and ai output to PDF

eps / ai示例 http://www.tcpdf.org/examples/example_032.pdf

eps/ai example http://www.tcpdf.org/examples/example_032.pdf

所有示例和php代码 http://www.tcpdf.org/examples.php

All the examples and php code http://www.tcpdf.org/examples.php

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

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