简体   繁体   English

phantomjs pdf可点击的超链接

[英]phantomjs pdf clickable hyperlink

I have been trying to get clickable hyperlinks in PDFs after using rasterize.js with phantomjs. 在使用带有phantomjs的rasterize.js之后,我一直在尝试在PDF中获得可点击的超链接。 I have found one comment on the phantomjs code.google.com page that says that hyperlinks are supported, but no examples of it working. 我在phantomjs code.google.com页面上发现了一条评论,其中说明支持的超链接,但没有任何示例。 I also tried the example from the quickstart guide at http://code.google.com/p/phantomjs/wiki/QuickStart 我还尝试了http://code.google.com/p/phantomjs/wiki/QuickStart上的快速入门指南中的示例

Has anyone else gotten this to work? 有没有其他人得到这个工作?

There is a bug right now that you can find details on here: https://github.com/ariya/phantomjs/issues/10196 . 现在有一个错误,你可以在这里找到详细信息: https//github.com/ariya/phantomjs/issues/10196 Ideally the links would work but they don't right now. 理想情况下,链接可以工作,但他们现在不行。

I'm not sure if links are "clickable" using PhantomJS' PDF rasterizing. 我不确定使用PhantomJS的PDF光栅化是否可以“点击”链接。 I think it just saves an image of the page to a PDF. 我认为它只是将页面图像保存为PDF。 According to the API docs, it saves the image buffer of the web page: https://github.com/ariya/phantomjs/wiki/Screen-Capture 根据API文档,它保存了网页的图像缓冲区: https//github.com/ariya/phantomjs/wiki/Screen-Capture

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM