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!
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
禁用边框:
Disable border:
以下代码将创建一个空白页面,其左下角有一个可单击区域,其中包含一个超链接:
上面的代码片段已使用 Zend Framework 1.10.7 进行了测试,但应该适用于从 1.9.7 开始的所有 Zend Framework 版本。
The following code will create a blank page with a clickable area at the bottom left corner that contains a hyperlink:
The above snippet was tested with Zend Framework 1.10.7 but should work on all versions of Zend Framework from 1.9.7 onwards.
这是不可能的 - 我尝试自己做类似的事情,不幸的是不得不求助于 FPDF 这不是'与 Zend_Pdf 一样好。
我研究了在 Zend_Pdf 中实现链接功能,但该结构对于我必须找到解决方案的时间来说太复杂了。
This isn't possible - I tried to do something similar myself and unfortunately had to resort to FPDF which isn't as good as Zend_Pdf.
I looked into implementing the link functionality in Zend_Pdf and the structure was too complicated for the amount of time I had to find a solution.
我一直在努力解决边框问题,并通过一个相当简单的技巧解决了它:
这将使所有类型链接的注释都没有边框。
I've been struggling with the border issue and have resolved it with a rather simple hack:
This will make all anotations of type link to not have a border.