Zend_Pdf将文本链接添加到pdf页面 [英] Zend_Pdf Add text link to pdf page

查看:89
本文介绍了Zend_Pdf将文本链接添加到pdf页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在Zend_PDF页面中添加锚文本(链接)? 我无法在Zend_Pdf在线手册中找到任何与此相关的信息,也无法阅读代码,所以我想这是不可能的.

Is it possible to add anchor text(link) in Zend_PDF page? I wasn't be able to find any information about this in Zend_Pdf online manual, or reading code, so I guess it is not possible.

如果有办法,请提出建议!

If there is way, please suggest!

谢谢!

推荐答案

禁用边框:

...
$target = Zend_Pdf_Action_URI::create('http://example.com');
$annotation = Zend_Pdf_Annotation_Link::create(0,0,100,100,$target);
$annotation->getResource()->Border = new Zend_Pdf_Element_Array();
$pdf->pages[0]->attachAnnotation($annotation);
...

这篇关于Zend_Pdf将文本链接添加到pdf页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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