-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Include hyperlink action in PDF output for hyperlinks in webpage #13250
Conversation
I'd love to see this in PhantomJS - does anyone know approx how long it might be until this shows up in binaries? |
i would like to see this feature as well in phantomjs 👍 |
+1 please merge asap |
cec0baa
to
f935751
Compare
Thank you @astefanutti, I just applied your pull request to the base source code (fresh clone from the master of phantomjs) and it worked like a charm. |
@aelgasser welcome, thanks for the feedback! |
02955eb
to
27926c8
Compare
b3cd914
to
c4df640
Compare
27926c8
to
56dfae2
Compare
Can anyone build the Windows Version of this PR and send me a Link ? |
@S3bb1 you can find a Windows binary containing this PR (among others https://github.com/astefanutti/phantomjs/commits/456d3a297c82b7cd91dd14d2ffb78cf81f74a921) at the following location: http://astefanutti.github.io/decktape/downloads/phantomjs-msvc2013-win64.exe. It's used for the decktape project. |
thx @astefanutti for the fast answer! |
+1, we need a merge 👍 |
56dfae2
to
a1377f8
Compare
Updated to support non ASCII characters in URLs. |
a1377f8
to
c06054f
Compare
Hyperlinks are written into the PDF engine during the paint outlines phase ariya#10196
c06054f
to
310a4a9
Compare
+1 |
@haydenbleasel If you managed to get a Ubuntu 14.04 build, that'd be great if you could upload it to the DeckTape download dir. |
@astefanutti I installed all the required dependencies on a stock Ubuntu installation, followed the steps and ran
|
@haydenbleasel thanks for the head up. |
Check list:
|
@astefanutti Thanks for this feature. Could this be configurable per render please? |
@vitallium Was able to build and run on Ubuntu Server 14.04 LTS @astefanutti +1. This is a lifesaver. I want to buy you lunch - do you have a bitcoin account? |
@wision not trivial, what would be the need to deactivate rendering of hyperlinks as clickable links? @JordanMajd thanks, you can back https://www.bountysource.com/issues/303463-suggestion-include-hyperlink-action-in-pdf-output-for-hyperlinks-in-webpage 😃. |
@astefanutti We generate multiple types of documents. Some are generated from our internal network, which means that all the links refer to internal host and that is unwanted. The idea of having to keep two versions of phantomjs binaries (one with and one without hyperlinks) is not ideal either. |
573e969
to
b483dd6
Compare
Do hyperlinks to fragment identifiers like— See the [table of contents](#toc). —compile to PDF links to the appropriate section of the same document? |
Given the externalisation of Qt Base and Qt WebKit as submodules, that PR is superseded by the two following PRs: |
@astefanutti I'm trying to run the binary you posted through markdown-pdf running from the standard Windows 10 x64 command prompt. It locks down my command prompt without doing anything, no CPU/Memory/Disk activity, and I'm forced to exit the prompt and restart it. The .exe that comes from npm can be opened directly on my machine while the posted binary, again, simply locks up the windows explorer window from which it's opened while seemingly doing nothing. |
@miso440 the binary I uploaded has been compiled and tested on Windows 7 x64. Unfortunately I don't have a Windows 10 box to test and troubleshoot. Would you have by chance an older Windows version? |
Thank you for the quick response, @astefanutti. I just took a swing at running it in Window 7 compatibility mode. Same issue both from my script and directly double-clicking. Unfortunately my old Windows 7 disk is DRM'd out of any further installations. Going to see if I can make any magic happen on my Ubuntu 15.04 file server or my Windows 8.1 laptop. |
@miso440 if you have a reproducible scenario to share that I can test on my platforms, I'll give it a try. |
@astefanutti, I got it to work in Windows 8.1 and ran into the issue I was hoping it would fix. I'll detail it in an issue on your page, where's it's more appropriate. Thank you. |
@astefanutti I've put together a compressed folder you can download here. It contains my node_modules environment (including 4 PhantomJS binaries) system information, and couple NodeJS scripts which run from the command line. I greatly appreciate any insight you can give me on the issue I'm experiencing. Thank you. |
Can anyone please build a binary file for ubuntu |
…in webpage