-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Suggestion: Include hyperlink action in PDF output for hyperlinks in webpage #10196
Comments
[email protected] commented:
|
[email protected] commented:
|
[email protected] commented:
|
[email protected] commented:
|
[email protected] commented:
|
[email protected] commented:
Because it's related to a QT lib, not Webkit directly. |
[email protected] commented:
|
It seems the wkhtmlpdf has the clickable links in generated pdf file. Is it possible to apply their webkit patch to phantomjs? |
FWIW, my links are clickable when the pdf is generated on Ubuntu 12.04.1, but not on my mac (10.6.8). |
I have phantomjs 1.9.0 on ubuntu 12.04.2 but no clickable links. |
I have the same issue (1.9.0 on Ubuntu 11.10) |
In summary, Can anyone give me the exactly solution for this problem? I'm using phantomjs 1.9 in windows and The default user agent is Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.34 (KHTML, like Gecko) PhantomJS/1.9.0 Safari/534.34 Your Http User Agent string is: SpecialAgent. |
I feel in the dark too. I tried compiling webkit on my ubuntu 12.10.1 , hoping that success there would make the pdf link problem go away; or that I'd be in a position to recompile phantomjs. But after 5 hours I'm lost - a ./autoconf batch file stops with a libglib-2 version insufficient message. I see dire warnings about trying to remove / reinstall this library (http://unix.stackexchange.com/a/49515), because of all the dependencies (all the latest official versions). So can anyone say which upcoming version of PhantomJS will adopt webkit 534.54 or greater? Much appreciated! |
Well, as far as I've been able to discern, the WebKit included in Qt 5.0.2 is from revision 136242, which was last changed on 2012-11-30 (just a few days before the Qt 5 release). That seems plenty current. I'm not sure what the corresponding 5xx.xx version number is, though...? |
It's less of a problem with WebKit and more with the PDF generation. Replace WebKit with any document technology and the hyperlink will not exist if both sides do not agree to detect + produce it. |
I see now (from thread #10448) this would go away with Phantom 1.10 or certainly 2.0 because of adoption of Qt 5 . So some time in the fall/winter 2013 ?! Ok. And certainly I appreciate that there's a lot of work in trying to keep PhantomJs up to date with fundamental changes in its underlying dependencies like qt/webkit ! Cheers, |
One thing I noticed: links are clickable in the PDF if the Not ideal, to be sure. But might help someone. This is as of phantom 1.9.0. |
Correction to my previous post: anchor tags don't help at all. It's just my PDF viewers that are making the url text clickable. Acrobat and Chrome PDF viewer pick up anything with So basically the hyperlinks aren't coming through from PhantomJS at all. |
:( |
Any news on this? |
Hey, is this issue fixed yet? |
+1 |
2 similar comments
+1 |
+1 |
Any update on the click feature on hyperlinks? |
I guess it will be part of PhantomJS 2. |
@oncletom Well i have solved the problem to an extend. Its not a complete solution. But it serves my pupose for the time being. May be the solution will be there in PhantomJS 2. |
Hyperlinks are written into the PDF engine during the paint outlines phase ariya#10196
Hyperlinks are written into the PDF engine during the paint outlines phase ariya#10196
Hyperlinks are written into the PDF engine during the paint outlines phase ariya#10196
Hyperlinks are written into the PDF engine during the paint outlines phase ariya#10196
Note that the patch was included in Qt 5.6.0, which should be about in about 6 months. |
@jhihn I don't think we will ever migrate (upgrade) to Qt 5.6.0. |
Why not?! |
Because release Qt 5.5.0 was the latest release of QtWebkit. |
Qt WebKit has indeed been removed from the Qt release packages though it is still maintained and part of the Qt 5.6 release from the source code which is the way PhantomJS is integrating Qt WebKit in its code line. So unless there is an actionable plan to migrate to the new Qt WebEngine or any other underlying Web engine, it is still possible to upgrade to Qt 5.6 and benefit from that enhancement. |
@astefanutti keeping QtBase and QtWebkit out of sync might be dangerous. |
Hyperlinks are written into the PDF engine during the paint outlines phase ariya#10196
+1 Hey guys, I know you have a lot of work on your plate but I'd love to see this patched. |
Currently, if you place your URLs, anchor or plain text, inside a |
Given the externalisation of Qt Base and Qt WebKit as submodules, PR #13250 is superseded by the two following PRs: |
As vitallium/qtbase#1 and vitallium/qtwebkit#1 have been merged and are now included in master branch, this can be labelled for next release and closed. |
Landed in master. |
@RomanMinkin I'm having PDF's with links working but I want to avoid what you did about to make: It is making akward some reports that I want to render in PDF. |
Ok, no problem, I found the answer in another issue of this project, alanshaw/markdown-pdf#63 I have solved my problem. |
@alfchee sweet. I used css to display link that way. |
[email protected] commented:
Disclaimer:
This issue was migrated on 2013-03-15 from the project's former issue tracker on Google Code, Issue #196.
🌟 8 people had starred this issue at the time of migration.
The text was updated successfully, but these errors were encountered: