Zend_Pdf添加文本链接到pdf页面

5 php pdf zend-framework zend-pdf

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

如果有方法,请建议!

谢谢!

小智 5

禁用边框:

...
$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);
...
Run Code Online (Sandbox Code Playgroud)


Dav*_*unt 1

这是不可能的 - 我尝试自己做类似的事情,不幸的是不得不求助于FPDF,它不如 Zend_Pdf。

我研究了在 Zend_Pdf 中实现链接功能,但该结构对于我必须找到解决方案的时间来说太复杂了。